Search Results

Search: Posts Made By: Frozen77
846
Posted By ahamed101
find . -type f \( -name '*.jpeg' -o -name '*.gif'...
find . -type f \( -name '*.jpeg' -o -name '*.gif' -o -name '*.bmp' -o -name '*.tiff' -o -name '*.png' \) -exec mogrify -format jpg {} \; -delete


--ahamed
4,137
Posted By junior-helper
You're welcome. Exactly. Just remove...
You're welcome.


Exactly.

Just remove the option -maxdepth 1

*** Important note ***: Actually, the provided command is a combination of two commands (find+zip),
which *does* recursively...
4,137
Posted By junior-helper
Hello, please try this command in your source...
Hello, please try this command in your source directory and let us know if it meets your requirement.
find . -maxdepth 1 -type d ! -name ".*" -exec bash -c 'zip -r "$0.zip" "$0"' {} \;
3,100
Posted By mirni
No, you don't have it correctly. There are a...
No, you don't have it correctly. There are a couple problems with your line:
1. convert takes 2 filenames:
convert <inputfile> <outputfile>
If you want to perform the operation on the same file,...
3,100
Posted By Don Cragun
Change: -name '*.jpg' -o -name '*.jpeg' -o...
Change:
-name '*.jpg' -o -name '*.jpeg' -o -name '*.gif' -o -name '*.png'to:
\( -name '*.jpg' -o -name '*.jpeg' -o -name '*.gif' -o -name '*.png' \)
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 05:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy