![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find, make and move file based on username | Helmi | UNIX for Dummies Questions & Answers | 5 | 04-19-2007 10:49 PM |
| how to start a process and make it sleep for 5 mins and then kill that process | shrao | Shell Programming and Scripting | 6 | 03-27-2007 01:54 PM |
| how to find the chid process id from given parent process id | guhas | Shell Programming and Scripting | 3 | 10-13-2005 09:13 AM |
| How would I make a find command NOT show the path of a file? | LordJezo | Shell Programming and Scripting | 1 | 10-01-2004 07:01 AM |
| how to make a current running process ignore SIGHUP signal? | stevensxiao | UNIX for Advanced & Expert Users | 3 | 12-02-2003 01:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Is there a way to make this find job run as one process, more efficiently?
Hi, unixers, I'm doing something like
find -type f -name '*.gif' | xargs rm & find -type f -user root | xargs chown idealo & wait #do more stuff on a very large dir. I'm thinking this would be more efficient if it was running as a single process that did one thing for the first condition, another thing for the other condition. I could do this with perl (File::Find), but I'm wondering if there's an elegant solution with bash. thanks for any insight! |
|
||||
|
You might be wrong in your thinking.
By creating two sub-proceses you are probably making the overall time of the job shorter. This is because both of those commands will spend time wating on disk i/o's to complete. When one process is waiting for i/o completion the other one can run. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|