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

How to skip few lines in a file and add it into another file?

Status
Not open for further replies.

761210

IS-IT--Management
Jun 25, 2003
13
0
0
US
Guys,

I am having problem adding lines from file abc to file def.
The command I tried is:
cat | tail +3 abc >> def;
The problem is tht I need to hit ENTER twice before above statement successfully executed.
Any idea why is this so? Kindly advice.

rgds.
 
...and end with ";"? The ; is used to run consecutive commands.

ls ; ps -ef

The above command doesn't make any sense, but it will run "ls" and then "ps -ef" afterward.

ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top