Just want to know a few conversion tricks.
in Borne Shell, I have the line:
if test -s testmap
## testmap is a filename and I wanna test whether it exists
## then do whatever
How can I convert that to C Shell?
if (test -s testmap) then
but it doesn't work. Says if: invalid expression.
Also, in Borne Shell, if I run a program called 'agent' in the background by typing in:
And it's process ID is stored in the variable $! and I can actually print it in Borne Shell.
But it seems that $! doesn't exists at all in C Shell. How can I do the similar thing in C Shell?