how do i write a csh script, that uses its first argument (a number) to specify which one of its remaining arguments to echo?
how do i write a csh script, that uses its first argument (a number) to specify which one of its remaining arguments to echo?
... and with a script called ss, it looks like this:Code:shift ${1} echo ${1}
Code:$ ss 3 this is a test line a
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]