Microsoft
Software
Hardware
Network
Question : regex move command in Ubuntu, how would I move the following files to a directory?
I have a directory of 10,000 files... with the same naming schema..
bigapple_lrg.jpg
bigapple_01_lrg.jpg
bigapple_02_lrg.jpg
bigapple_03_lrg.jpg
bigapple_04_lrg.jpg
bigapple_05_lrg.jpg
banana_lrg.jpg
banana_01_lrg.jpg
banana_02_lrg.jpg
banana_03_lrg.jpg
banana_04_lrg.jpg
banana_05_lrg.jpg
banana_06_lrg.jpg
banana_07_lrg.jpg
banana_08_lrg.jpg
(some items go up to _60_lrg.jpg)
etc..
I want to move all the files with "_##_lrg.jpg" to a sub directory "/extrapics" , but leave files like "banana_lrg.jpg" in their current directory.
Is there some kind of regex way to move the files like:
mv *_\d\d_lrg.jpg /home/myself/documents/web
site/extra
pics/
Answer : regex move command in Ubuntu, how would I move the following files to a directory?
This should do it I believe - test it first on something that doesn't matter though!
mv *_??_lrg.jpg /home/myself/documents/web
site/extra
pics/
Random Solutions
How can I fill a list box which shows if no contact have been made in the last 90 days and no file has been added to a specific folder in the last 90 days in MS Access forms with VBA?
management ip on Cisco ASA devices
adjustColorSaturation filter in AS3
Printer Redirection on Windows 2008 R2 Terminal Server
How do I get the <head> section in a Joomla site to include different java script links depending on what page is accessed?
Which Analog Telephone Adapter has the best power supply on the analog ports?
Can not add duplicate
Will a 32bit application run on a 64-bit or ia64 windows
Excel Formula help
Display data from fields in multiple tables on a single report