Multi-line command substitution (csh)

Multi-line command substitution (csh)

Post by Equation M » Fri, 16 Sep 1994 14:54:16



I have a very long command in a csh script that produces, in stdout, a
series of csh commands. I'd like to have the shell substitute the stdout
from the first command into the script, like:
`command`
does for short commands.

My big command is formatted as such:
line1\
line2\
line3\
...
lineLAST

It produces the correct output (I have checked this) but when I attempt to
put the whole thing between ` signs, it loses track of them, giving the
message "Unmatched `."
There are no other ` signs in the command that could confuse it.
Somehow the backslashes are getting lost...? How can I fix it?
You must help me, the only response I can get from the local guru is "ksh
could do it." If you love your shell as much as the argument on this group
would indicate, give me a way to say back to him "csh can do it better".

--
Alan |GE d? H s++:-- g+++ p? !au a-- v--- C+++ UB++ P-- L>+++ 3>+++ E--- N* K-
Curry|W+>! M-- !V -po+ Y+ t+(+++) 5++ j- R- G? tv++ b- D++>+++ B--- e+ u h f?
r--(---) y? n---- "You can't save everybody, just try not to be living next
                   door to them when they go off." --Dennis Miller

 
 
 

1. csh command line substitution question

We are using cshell's command line substitution:

    riar t ri.TLCblks > tx.TLCblks

    ^TLCblks^IBMblks^

    yields this result:

    riar t ri.IBMblks > tx.TLCblks

How do we get the command line substitution to replace both parameters?

TIA,
Kelly Uehling
Mid-West CAD, Inc

2. no more "!" history char expansion for me, thank you

3. command line substitution in csh

4. Linksys ethernet cards

5. Multi-line shell commands ?

6. timeout on read command

7. mistyped chmod and ...

8. bash multi-line command editing

9. Q: crontab disallows multi-line commands?

10. Multi-line commands - How to?

11. csh with a command on the command line

12. nested command substitution in csh