Hi Everyone,
I'm relatively new to using c shell and I'm trying to understand a script for data processing. In it they use the set command:
E.g. one such line:
set scan = 'cat /home/wera/etc/.scan'
When I try to test the command myself with my own files:
set scan = 'cat /home/mweather/Test'
and then use:
echo $scan
it produces:
cat /home/mweather/Test
What I was hoping it would do is display the contents of the file Hello:
Hello, this is a test
Is it because I'm using tcsh and the script I am trying to understand is using csh?
Any advice on why the cat command doesn't work within the set command would be appreciated, thank you!
---------- Post updated at 01:51 PM ---------- Previous update was at 01:43 PM ----------
Ok so I just figured it out - I will leave this post up just in case anyone wants the answer - I was using the apostrophe ' instead of ` . That simple!