Unix Command to delete a range of lines from a file.
Suppose you have a file temp.txt with 100s of lines and you need to delete lines from line# 20 to line# 45.
Unix command to delete a range of lines from a file
Suppose you have a file temp.txt with 100s of lines and you need to delete lines from line# 20 to line# 45.
Unix command to delete a range of lines from a file
$ sed '20,45d' temp.txt
No comments:
Post a Comment