LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2006, 04:47 AM   #1
vikrambhimbar
Member
 
Registered: Aug 2005
Location: India
Posts: 33

Rep: Reputation: 15
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
 
Old 09-22-2006, 05:25 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help to write Shell Script vikrambhimbar Linux - Software 1 05-08-2006 06:10 AM
help to write shell script vikrambhimbar Linux - Software 2 04-03-2006 04:43 AM
Where to write the shell script? OpenSesame Linux - Newbie 3 03-27-2006 02:03 PM
write a shell script to send email yenonn Programming 4 02-11-2005 10:06 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration