Thread: unix commands
View Single Post
Old 10-13-2002, 10:14 PM  
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Quote:
Originally posted by kenny
Is there a command that will delete the first 50 lines in a file? I know I can display the first 50 lines with "head -50 somefile.txt", but I need to delete the first 50 lines.
pico file.txt

then

control k (fifty times)

then

control o


You are welcome.
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote