Operating System - HP-UX
1753419 Members
4747 Online
108793 Solutions
New Discussion юеВ

Re: awk - printing all fields other than first field in a variable length record

 
SOLVED
Go to solution
Rodney Hills
Honored Contributor

Re: awk - printing all fields other than first field in a variable length record

Instead of awk, how about using "cut". Like-
cut -d" " -f 2- filename
There be dragons...
Vikas Khator
Honored Contributor

Re: awk - printing all fields other than first field in a variable length record

Hi Bala ,

Try this :

cat yourfile | awk '{ $1="" ; print $0 }'
Keep it simple
Bala_4
Occasional Advisor

Re: awk - printing all fields other than first field in a variable length record

Hi Everone
Here is a simple solution which I found.

awk '{$1="";print}'

Thanks for all the help
Bala

Madhu Sudhan_1
Respected Contributor

Re: awk - printing all fields other than first field in a variable length record

Bala :
Feel free to assign points.
...Madhu
Think Positive