1
vote
1answer
428 views

Printing a '$' (dollar sign) to a file

I want to echo/printf a dollar sign into a file - but echo $ > myfile or such does not work (not surprising). I tried escaping it like echo \$ > myfile but it is also not working. What is the ...
0
votes
2answers
84 views

Extracting the 'In real life' value from finger

I want to get a user's real life name based to print during the login script. I'm using currently the following command: finger | grep $LOGNAME | head -1 | awk '{print $2 " " $3}' Is there any ...
0
votes
1answer
243 views

How can I define a variable in a TCSH script that will not be exported to the process which invoked it?

I know that in KSH, if I write export A=B the process which invoked my script can evaluate ${A}, and if I write A=B, then ${A} will have no value outside of my script. How can this be done in TCSH? ...
1
vote
1answer
48 views

Last line in a `tcsh` script does not run

I have a tcsh script that sets aliases during login. It seems like the last line in the file is not executed. If I put a new line after it - it works fine. Example - bad: ... ... ... alias ...