[lug] Joining commands?
Zan Lynx
zlynx at acm.org
Wed Apr 7 17:53:08 MDT 2004
On Wed, 2004-04-07 at 17:39, Jeff Schroeder wrote:
> John asked:
>
> > I use Sun UNIX at work, and was trying to play a series of audio
> > files using the following command:
> >
> > find / -name '*.au' | audioplay
>
> I suspect that piping everything at once into audioplay is the problem.
> Instead, play them one at a time:
>
> find / -name '*.au' -exec audioplay {} \;
There is also xargs, which has several nice features and is used like
this:
find / -name '*.au' | xargs audioplay
--
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20040407/d46e1527/attachment.pgp>
More information about the LUG
mailing list