I'm working with C-Shell, I'm trying to run this script
set callsTo = "`cut -d" " -f2 ${1}`"
echo $callsTo
cut receives data from the file which is the first parameter:
> ./myscript data
I need only second field from every row: -f2
.
After that I want to check if the data was stored, but I receive or an error unmatched . or empty row. What is wrong with my script?
Also when I'm using #! /bin/tcsh -f
I receive this message
tcsh [ -bcdefilmnqstvVxX ] [ argument ... ]