hi,
Is there a simple way to cat a file a print colums 1 through to 5?
This is how I tediously accomplish this at the moment:
cat file | awk '{print $1$2$3$4$5}'
would be great to use a range of some sort, eg:
cat file | awk '{print $1:$5}'
many thanks
hello,
I'm having trouble printing the minimum numerical value in a column. When I try printing the maximum value it works fine. It's almost as if awk does'nt like the '<' parameter.
The command I run is:
cat file | awk '$5 < min {min=$5; minline=$0}; END{ print min, minline}'
The result is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.