GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Find Files Execute Command |
20201116 Move all files in the current folder that match a regex pattern into a subfolder called statements:
$ find . -maxdepth 1 -regextype posix-extended -regex '.*_[[:digit:]]{4}.pdf' \ -exec mv {} statements \; |