georgeocrawford
Technical User
Hi,
I'm piping the results of an
into this awk command:
However, when this is run on a filename with a space in it, I just get the first word of the filename printed.
I think I need to change the default field separator from whitespace to just tabs - is that correct? If so:
which I tried, but it doesn't work (prints nothing).
Can someone please help with my command-line syntax for awk!
______________________
George
I'm piping the results of an
Code:
ls -l
Code:
awk '{print $9"\tF\t"$5}'
However, when this is run on a filename with a space in it, I just get the first word of the filename printed.
I think I need to change the default field separator from whitespace to just tabs - is that correct? If so:
Code:
awk 'BEGIN { FS = "\t" } ; { print $9"\tF\t"$5}'
which I tried, but it doesn't work (prints nothing).
Can someone please help with my command-line syntax for awk!
______________________
George