RosettaCodeData/Task/Execute-a-system-command/C-Shell/execute-a-system-command-2.csh

4 lines
94 B
Tcsh

set output=( "`grep 80/ /etc/services`" )
echo "Line 1: $output[1]"
echo "Line 2: $output[2]"