Last active
July 28, 2022 00:44
-
-
Save hongsolo9/14eae896d5781c9432a3042a37ac9325 to your computer and use it in GitHub Desktop.
Using sed, remove lines starting with "20220726" or "20220727" or "No"
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
# -i : inplace editing | |
# ^ : line starting with | |
# | : or (here we put a \| because "|" is a special character) | |
sed -i '/^20220727\|^20220726\|^No/!d' <filename> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment