LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help to write shell script (https://www.linuxquestions.org/questions/linux-software-2/need-help-to-write-shell-script-485934/)

vikrambhimbar 09-22-2006 05:47 AM

Need help to write shell script
 
Hi ,

I am trying to write a script which will get command line parameters from users and print it using getopts command.

example suppose my script name is test.sh
and if user write on shell
# test.sh -f abc -l xyz
then I should get output welcom abc xyz

please help.

Thanks
Vikram

Nathanael 09-22-2006 06:25 AM

a simple google search for 'bash scripting' returnd this page
http://www.google.com/search?q=bash+scripting

the first entry is pretty good - i use it a lot of the time too.


All times are GMT -5. The time now is 04:35 AM.