Subject: | |
From: | |
Reply To: | |
Date: | Sat, 28 Feb 2015 13:04:12 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Xargs is designed for this sort of thing.
find / -type f -iname \*.pdf -print0 | xargs -0 -n1
/opt/pdfstudio9/pdfstudio9
For programs that accept more than one file on the command line, you can
drop the -n1.
Boris
On 2/27/15, 8:03 PM, "John Lauro" <[log in to unmask]> wrote:
>find / -type f -print0 | while read -d '' -r file ; do
>/opt/pdfstudio9/pdfstudio9 "$file" & done
>
>should work...
>
>----- Original Message -----
>> From: "ToddAndMargo" <[log in to unmask]>
>> To: "Brad Cable" <[log in to unmask]>, "Scientific Linux Users"
>><[log in to unmask]>
>> Sent: Friday, February 27, 2015 7:52:03 PM
>> Subject: Re: need release command for find -exec
>>
>> >>
>> >> find -maxdepth 1 -iname \*.pdf -exec /opt/pdfstudio9/pdfstudio9
>> >> {} \;
>> >>
>> >> But you have to close the first instance to get the second
>> >> to open, etc..
>> >>
>> >> I have tried adding "&" to the end, but no syntax joy.
>> >>
>> >> How to I get "-exec" to run and release, so "find" can go
>> >> on to the next instance?
>> >>
>> >> Many thanks,
>> >> -T
>> >>
>> >
>> >
>>
>>
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Computers are like air conditioners.
>> They malfunction when you open windows
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
|
|
|