The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need help writing this unix script wiggles Shell Programming and Scripting 7 12-12-2008 09:15 PM
help writing this unix script wiggles Shell Programming and Scripting 2 12-12-2008 12:28 PM
Perl Unix Script Writing Dinkster UNIX for Dummies Questions & Answers 1 02-01-2008 04:09 PM
Writing and executing a script in RTR implementation of UNIX mahajan.anubhav Shell Programming and Scripting 0 03-16-2006 05:20 AM
Need help in writing a unix script pray44u Shell Programming and Scripting 1 03-30-2005 08:15 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-26-2009
stuaz stuaz is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 13
Writing Unix script to accept arguments

Hi,

This may be answered elsewhere but I wasn't entirely sure of the wording I should use to search so here we go with an attempt:

I wish to make a script that will allow commands to be passed to it such as:

<command> -oOPTIONS -aANOTHER -pRINT

etc

However I don't really know the syntax of what to do ir how to accept them with in the code.

Like for example:

If I want it do run a certain command if -o equals "Fred".

If anyone has any help or "how to's" it would be most apprieciated.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0