Hi,
How do I assign a variable in a PIPELINE in C-Shell? Please, in C-shell. Not other shell
example:
#!/bin/csh
set var=" "
echo "cc"|<do something so that var="cc">
echo $var
cc
I KNOW this method and DONOT want to use it for certain reasons:
set var=`cat file.txt|tail -l`
The variable assignment MUST BE in PIPELINE in C-shell please.
Thanks,
Suhaimi
How do I assign a variable in a PIPELINE in C-Shell? Please, in C-shell. Not other shell
example:
#!/bin/csh
set var=" "
echo "cc"|<do something so that var="cc">
echo $var
cc
I KNOW this method and DONOT want to use it for certain reasons:
set var=`cat file.txt|tail -l`
The variable assignment MUST BE in PIPELINE in C-shell please.
Thanks,
Suhaimi