Skip to main content

Thread: Script to move files based on resolution (in file name)


i have lot of jpg images in 1 directory have resolutions of 500px or 1000px. of images both 500px , 1000px. have same file name except _500 or _1000 @ end. e.g. xyz_500.jpg, xyz_1000.jpg , abc_500.jpg, abc_1000.jpg. problem of images 500px , don't have higher resolution 1000px complement.

i'd script moves 500px images have 1000px complement directory. if 500px image doesn't have 1000px complement leave alone.

so...

if xyz_500.jpg has xyz_1000.jpg
mv xyz_500.jpg ~/folder2
else nothing , go next file

thanks.

..................


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Script to move files based on resolution (in file name)


Ubuntu

Comments

Popular posts from this blog

Adobe Acrobat Pro , Terminal Server Use

Thread: transmission-daemon isn't playing nice: "409: Conflict"

Thread: gpg: Conflicting Commands