Select a particular column using awk or cut or perl
Posted
by
javed abbas
on Stack Overflow
See other posts from Stack Overflow
or by javed abbas
Published on 2012-12-10T04:53:15Z
Indexed on
2012/12/10
5:03 UTC
Read the original article
Hit count: 222
Have a requirement to select the 7th column. eg:
cat filename | awk '{print $7}'
The issue is that the data in the 4th column has multiple values with blank in between. example - The last line in the below output:
user \Adminis FL_vol Design 0 - 1 -
group 0 FL_vol Design 19324481 - 3014 -
user \MAK FL_vol Design 16875161 - 2618 -
tree 826 FL_vol Out Global Doc Mark 16875162 - 9618 - /vol/FL_vol/Out Global Doc Mark
© Stack Overflow or respective owner