e.g.
To remove files with numbers in sequence :
rm some-files-000[1-9]
Is bonus time !!!
There are other Bash utilities supports regex. Below are some examples :
To list some files with numbers in sequence :
ls some-files-000[0-5]
rsync, too, support regex
e.g.
rsync -av --progress some-files-0001[0-5] some-files-0002[0-5] destination-directory
Hasta la Vista !!!
No comments:
Post a Comment