Below is a simple csh script I wrote. But the set does not work. Can anyone please help me with the error.
#!/bin/csh
echo "hello"
set ans ='grep -r hello ./'
echo ans
Tried back quotes still not working:
#!/bin/csh
echo "hello"
set ans =`grep -r hello .`
echo $ans