Suppose say you have a very huge file which might be in GB(s) and you want only a part of the file to be seen then vi is not suitable to view that file. Instead use a sed which does this job very easily.
sed -n -e 'Start_line_number,End_line_number p' Filename
This will retrieve only those lines staring from "Start_line_number" and upto including "End_line_number"
This is best useful command to retrieve only a part of file which is very huge and big.
No comments:
Post a Comment