Created
November 30, 2019 01:50
-
-
Save donchan922/8f2a0cf00c750f4af165e3733b34dcdd to your computer and use it in GitHub Desktop.
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
# 読み込むファイル | |
$ cat demo.txt | |
CentOS | |
Red Hat Enterprise Linux | |
Fedora | |
Ubuntu | |
Debian | |
# demo.txtから「Ubuntu」を含む行を削除する | |
$ sed -i '/Ubuntu/d' demo.txt | |
$ cat demo.txt | |
CentOS | |
Red Hat Enterprise Linux | |
Fedora | |
Debian |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment