Search Results

Search: Posts Made By: Aia
1,956
Posted By Aia
A few things to be aware: Using a for loop here...
A few things to be aware:
Using a for loop here limits to files that do not have spaces, if any file matched by find contains spaces the script would introduce a behavior you do not want. And by the...
1,956
Posted By Aia
Yes, changing the -name "*.jpeg" to -name...
Yes, changing the -name "*.jpeg" to -name "folder.jpg" will only find files named as such and if it does not find any, well, it does nothing.

Here's an explanation of the find command
find ....
1,956
Posted By Aia
Perhaps, something like this find . -type f...
Perhaps, something like this

find . -type f -name "*.jpeg" | while read f
do
echo "Processing ${f}…"
convert -thumbnail 235x "$f" sm_"$f"
done
Based on your snippets; not tested.
Showing results 1 to 3 of 3

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