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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file

Status
Not open for further replies.

we2aresame

Technical User
Feb 10, 2003
128
CA
a file like:
text1...
text2...
text3...
...
I want to get a new file with out line include text1,like:
text2...
text3...
...

who can help me, thanks.
 
If you just want to omit line 1, then
Code:
awk 'NR>1{print}' file
 
look up the grep command e.g. grep -v line1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top