terminal – Using regex with find
I need to move all files that start with iCloud
and of .zip
extension (using find).
After reading several pages on regex, I still cannot seem to make it work.
This is the output:
~/Downloads$ find -E *.zip
HP_Easy_Start.app.zip
OneDrive_1_09-04-2022.zip
OneDrive_2022-05-04.zip
OneDrive_4_08-04-2022.zip
WhatsApp Unknown 2022-04-27 at 19.25.32.zip
iCloud Photos-2.zip
iCloud Photos-3.zip
iCloud Photos.zip
t.0.zip
logo.zip
Now, when I attempt any combination starting with ^iCl
it does not work. I get:
~/Downloads$ find -E ^i 1🚫
find: ^i: No such file or directory
Any reason why?
Categories