[lug] passing arguments to C shell script ?

PC Drew drewpc at colorado.edu
Mon Jan 31 11:04:23 MST 2000


it's possible, try this script:

Script:
#!/bin/csh

echo $argv[1]

Command line will result in:
$ script.csh blah
blah
$

--
PC Drew


Thus spake arnie on Saturday, January 29, 2000, 2:21:58 PM:

a> I have been told that it is not possible to pass command line arguments
a> into a C shell script. Does anyone know if this is true. Seems hard to
a> believe, but i have not been able to get it to work so far.
a> thanks,

a> --
a> arnie sherman
a> frenomulax at bigfoot.com

a> "Paradise is exactly like where you are right now,
a>  only much, much better."
a>         -Laurie Anderson





a> _______________________________________________
a> Web Page:  http://lug.boulder.co.us
a> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug






More information about the LUG mailing list