how to find and remove line from a file in shell code example Example: linux remove lines from file > sed '2,4d' file