You want to mv not cp, and your destination is /usr/share/icons not /tmp but you can run this from the command line or a shell script.
-iname is case insensitive, -name would be case sensitive. Tweak the -maxdepth to your liking, and/or pull of the -ok clause to just see what it is coming up with.
bash can handle this easily:
Use
sudo mv ...
if you don't have permission to write into /usr/share/icons.As follows
I'm not a bash expert - but this should work. if it doesn't there is no warranty with my answer :P
Why not use
find
? This worked for me:You want to
mv
notcp
, and your destination is/usr/share/icons
not/tmp
but you can run this from the command line or a shell script.-iname
is case insensitive,-name
would be case sensitive. Tweak the-maxdepth
to your liking, and/or pull of the-ok
clause to just see what it is coming up with.