gborrageiro
Technical User
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
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