Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Shell Scripting (http://www.domainnameforum.org/forumdisplay.php?f=130)
-   -   how to write a script that takes any file as an input? (Newbie) (http://www.domainnameforum.org/showthread.php?t=145044)

webdev 02-22-2011 04:34 PM

how to write a script that takes any file as an input? (Newbie)
 
Hi I wrote a script for class that took one specific file as an input. Ideally, it should be able to take any file as an input. How do I do that? Someone suggested using $@ since is a global variable but I'm kinda confused on how to implement it. I'm thinking... $@=$1 $1=filename.txt then...


All times are GMT -4. The time now is 07:34 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.