lsした結果をgrepに渡して、除外したいものを省いてrmに渡す
例、 .
, ..
, .ignore
から始まるファイル(フォルダ)を対象外にする
ls -a | grep -v -E "^\.|^\.\.|.ignore" | xargs rm -rf
Go to list of users who liked
More than 3 years have passed since last update.
lsした結果をgrepに渡して、除外したいものを省いてrmに渡す
例、 .
, ..
, .ignore
から始まるファイル(フォルダ)を対象外にする
ls -a | grep -v -E "^\.|^\.\.|.ignore" | xargs rm -rf
Register as a new user and use Qiita more conveniently
Go to list of users who liked