Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text file..

Status
Not open for further replies.

kumariaru

IS-IT--Management
Mar 9, 2006
61
AU
Hi,
Good Morning..
I have situation where I have leave the first line of text file and display from the second line.Here I have text file with column heading.I do not want column heading.So,I have to display it from the second line.And 1st line is of 1944 characters length(column names heading).I know that i have to do it with "sed" but I do not know the exact expression.
I am not a unix programmer.'

Thanks in advance..
 
Hi

Code:
tail +2 /input/file

[gray]# or[/gray]

sed '1d' /input/file

[gray]# or[/gray]

sed -n '2,$p' /input/file

[gray]# or[/gray]

awk 'NR==1{next}1' /input/file

[gray]# or[/gray]

awk 'NR>1' /input/file

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top