Bill Jonas wrote: > On Thu, Oct 14, 2004 at 08:59:02AM -0700, Josef Lowder wrote: > >>Is there an efficient syntax to string commands so I could do a 'diff' >>on these two listings (without listing each to a file to compare files) >>to see what the two additional files are? > > > With bash and some others: > > diff <(ls -a ~) <(ls -A ~) > > The <() syntax is called "command substitution". It basically gives a > filehandle on the output of the command you have inside. You can think > of it as similar to a pipe, except it's for commands that don't accept > data on their standard input. For fun, you can try "file -s <(df -h)" > (or any other command instead of df) and note the results. (Results may > differ on different distributions, but "fd" is short for "file > descriptor".) > Thanks for that one, Bill. Slick! Guess I should read "man bash" one of these days. Learn somethin' new every day. -- -Eric 'shubes' "There is no such thing as the People; it is a collectivist myth. There are only individual citizens with individual wills and individual purposes." -William E. Simon (1927-2000), Secretary of the Treasury (1974-1977) "A Time For Truth" (1978), pg. 237 **************************************************** This message has been scanned using Contraxx Technology Group mail server v2.3 and is virus free. **************************************************** --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss