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

No comments:

Post a Comment