Linux DB PHP Scripts Tech Diary
Search This Blog
Monday, March 14, 2011
linux remove the first line of a file
Two ways:
1, generate new file
sed 1d delete_old_capture_file.dump > delete_old_capture_file.list
2, update same file
sed -i 1d /tmp/delete_old_capture_file.dump
Newer Posts
Older Posts
Home
Subscribe to:
Comments (Atom)