Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-26-2004, 06:02 PM   #1
LQ Newbie
Registered: Oct 2004
Location: Zagreb, Croatia
Distribution: CentOS 4.4
Posts: 24

Rep: Reputation: 15
How to make JHEAD work on all subfolders within a folder

I have these two commands:

jhead -cmd "mogrify -quality 80 &i" *.jpg
jhead -cmd "jpegtran -progressive &i &o" *.jpg

And I would need to modify them to:

- work on all subfolders within a folder
- work on both *.jpg and *.JPG extensions
- and if possibly put them in a bash shell script so I can run them with cron (OK, at least I know how to setup a cron )

Can any of the expert guys help a shell newbie?




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need a script to delete all files from a folder and subfolders cccc Programming 1 03-04-2005 10:54 AM
make a folder readable evensen Linux - Software 6 12-29-2004 06:37 AM
How to make a folder FireInTheDark Linux - Newbie 2 11-28-2004 04:55 AM
changeing permissions for a folder + subfolders and files ? YBA^[x] Slackware 7 08-06-2004 04:07 AM
How to make folder index? alexaltair Linux - General 7 11-25-2003 03:54 AM

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration