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=148512)

webdev 03-11-2011 08:03 AM

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 03:10 PM.

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