CentOS8の本から
コメント行とから行を外す。
パターン①
cat .bash_profile | grep -v ^# | grep -v ^$
パターン②
grep -Ev "^#|^$" .bash_profile
More than 1 year has passed since last update.
CentOS8の本から
コメント行とから行を外す。
パターン①
cat .bash_profile | grep -v ^# | grep -v ^$
パターン②
grep -Ev "^#|^$" .bash_profile
Register as a new user and use Qiita more conveniently