2
1
If I have:
foo
bar
..and I'd like to awk/sed this to:
foo-bar
..what's the syntax?
I'm trying to use System Profiler on OS X 10.6.x:
system_profiler SPMemoryDataType | awk '/Type/ {print $2} /Speed/ {print $2}'
to output type-speed (ie DDR-1067). Haven't figured out how to do this using print
or printf
yet, might try to just grep
instead..