Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-22-2006, 05:47 AM   #1
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
and if user write on shell
# -f abc -l xyz
then I should get output welcom abc xyz

please help.

Old 09-22-2006, 06:25 AM   #2
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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:10 AM
help to write shell script vikrambhimbar Linux - Software 2 04-03-2006 05:43 AM
Where to write the shell script? OpenSesame Linux - Newbie 3 03-27-2006 03:03 PM
write a shell script to send email yenonn Programming 4 02-11-2005 11:06 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 04:00 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 AM.

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