error in script

Posted by lego69 on Stack Overflow See other posts from Stack Overflow or by lego69
Published on 2010-05-31T09:48:48Z Indexed on 2010/05/31 9:52 UTC
Read the original article Hit count: 163

Filed under:
|
|
|

can somebody please help, 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, thanks in advance for any help

© Stack Overflow or respective owner

Related posts about programming

Related posts about scripts