文字列操作

Linux

Linuxコマンド:【grep】コメント、空白行以外を抽出

以下のコマンドで、コメント行、空白行以外の行を出力します。grep -v -e '^\s*#' -e '^\s*$' cat | grep -v -e '^\s*#' -e '^\s*$'