Skip to content

Instantly share code, notes, and snippets.

@donchan922
Created November 30, 2019 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/8f2a0cf00c750f4af165e3733b34dcdd to your computer and use it in GitHub Desktop.
Save donchan922/8f2a0cf00c750f4af165e3733b34dcdd to your computer and use it in GitHub Desktop.
# 読み込むファイル
$ 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