terminal – Using regex with find

SubhamOctober 5, 2022
Spread the love


I need to move all files that start with iCloud and of .zipextension (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

Leave a comment

Name *
Add a display name
Email *
Your email address will not be published
Website