Thursday, March 26, 2009

Select the first n lines of a file

On linux, to select the first 1000 lines of a file and write it to another file use

head -n1000 file_name > new_file_name

No comments: