Chan_Un Posted May 1, 2004 Share Posted May 1, 2004 (edited) Under UNIX, does anyone know how to run a script that regards whatever follows? e.g. $ script doc (I just want to know how to specify the "doc" without having to type it during execution of the script) :unsure: Edited May 1, 2004 by Chan_Un Link to comment Share on other sites More sharing options...
kjordan2001 Posted May 1, 2004 Share Posted May 1, 2004 http://www.linuxdevcenter.com/pub/a/linux/lpt/44_16.html Link to comment Share on other sites More sharing options...
Chan_Un Posted May 1, 2004 Author Share Posted May 1, 2004 ... I wonder whether or not it is possible to do that under Cshell.... :o Link to comment Share on other sites More sharing options...
kjordan2001 Posted May 1, 2004 Share Posted May 1, 2004 Cshell uses $0 for the script name and then $1, $2, $3 and so on for arguments. Link to comment Share on other sites More sharing options...
Chan_Un Posted May 1, 2004 Author Share Posted May 1, 2004 Thanks a lot! :p Link to comment Share on other sites More sharing options...
Recommended Posts