Created
August 17, 2020 12:49
-
-
Save peterszatmary/7fce95cf1df9117e2eba8b4bcd7682ed to your computer and use it in GitHub Desktop.
How to delete specific line from file file.txt and store the result to the same file. Example with 4th line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i.bak '4d' file.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment