Berk Birand
2004-04-04 11:02:04 UTC
Hi,
AS I was reading a book on shell, I came up with a lot of redirection
operators that I did not know. After seeing all these, it occurred to me
that perhaps a feature that I was looking for might have its own operator.
Is it possible to pipe a commands output to another commands command-line
arguments instead of its standard input?
For instance when one does a listing with a simple ls, one gets a bunch of
filenames, such as:
$ ls
COPYING.gz ChangeLog.gz Copyright.gz Problems.gz README.gz timespec.gz
I would like to send these files as arguments to cat in order to print
them all. Now I know that for this particular case, this may be
accomplished by 'cat ./*' , but there are other circumstances in which
such an alternative is unavailable.
Any Ideas?
Thanks
BB
AS I was reading a book on shell, I came up with a lot of redirection
operators that I did not know. After seeing all these, it occurred to me
that perhaps a feature that I was looking for might have its own operator.
Is it possible to pipe a commands output to another commands command-line
arguments instead of its standard input?
For instance when one does a listing with a simple ls, one gets a bunch of
filenames, such as:
$ ls
COPYING.gz ChangeLog.gz Copyright.gz Problems.gz README.gz timespec.gz
I would like to send these files as arguments to cat in order to print
them all. Now I know that for this particular case, this may be
accomplished by 'cat ./*' , but there are other circumstances in which
such an alternative is unavailable.
Any Ideas?
Thanks
BB