LoginSignup
0
0

設定ファイルなどのコメント行と空白改行を削除させる方法

Last updated at Posted at 2016-12-02

# が行頭にあるテキストファイルの場合

% grep -v ^# /etc/rc.conf

# と改行のみが行頭にあるテキストファイルの場合

% grep -Ev ^#\|^$ /usr/local/etc/apache24/httpd.conf
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0