[LAU] Script

Arnold Krille arnold at arnoldarts.de
Tue Mar 10 03:34:27 EDT 2009


On Tuesday 10 March 2009 00:53:25 alex stone wrote:
> I'm going through my bash commands manual, but can't find out how to cd to
> a directory and enact a command, all in one go.

( cd <dir> && <command> )

All in the parentheses is executed in the same (sub-)shell.

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20090310/f629a555/attachment.pgp 


More information about the Linux-audio-user mailing list