Delete files with regular expression
09 Jun 2018
grep -P “your regex code”
xargs -d”\n” rm
xargs -d”\n” rm executes rm line once for every line that is piped to it.
comments powered by Disqus.
© 2021 ZhangShuo. All rights reserved.