|
Home > Archive > Unix Shell > November 2006 > cat from script and file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
cat from script and file
|
|
| * Tong * 2006-11-24, 1:31 am |
| Hi,
Is it possible to cat from script and file using a single cat?
I.e.,
cat << EOF | cat - file.app
from script
EOF
Anyway I can do something like,
cat << EOF file.app
or
cat << EOF < file.app
or...?
thanks
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/
--
Posted via a free Usenet account from http://www.teranews.com
| |
| Bill Marcum 2006-11-24, 1:31 am |
| On Thu, 23 Nov 2006 23:46:10 -0500, * Tong *
<sun_tong_001@users.sourceforge.net> wrote:
> Hi,
>
> Is it possible to cat from script and file using a single cat?
> I.e.,
>
> cat << EOF | cat - file.app
> from script
> EOF
>
> Anyway I can do something like,
>
> cat << EOF file.app
>
> or
>
> cat << EOF < file.app
>
cat - file.app << EOF
You can only redirect standard input once per command, but cat can read
from a list of arguments, with the argument '-' representing standard
input.
--
May your SO always know when you need a hug.
|
|
|
|
|