Last active
November 30, 2019 01:51
-
-
Save donchan922/c0b09a5ef1fc96fee964dc9d8a4456ea 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」を含む行を削除した結果を、result.txtに出力する | |
$ sed '/Ubuntu/d' demo.txt > result.txt | |
$ cat result.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