The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Creating functions in shell script gjithin Shell Programming and Scripting 1 05-10-2008 03:15 AM
creating dynamic shell script sundarkumars Shell Programming and Scripting 2 02-13-2008 11:28 AM
plz help me by creating required shell script girish.batra Shell Programming and Scripting 5 02-05-2008 02:11 AM
Shell script creating too many processes. Miller_K Shell Programming and Scripting 3 05-22-2007 11:42 AM
help on creating shell script master_6ez Shell Programming and Scripting 1 11-21-2004 09:21 PM

Closed Thread
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
  #1 (permalink)  
Old 11-21-2004
plmahan plmahan is offline
Registered User
  
 

Join Date: Nov 2004
Location: Glendale, Arizona
Posts: 1
Smile Creating my first Shell Script

I have an assignment in my programming class to write a shell script that will use command line parameters, display the # of parameters, display all parameters on the command line and display the parameters $0-$9. I understand some of the code (I will be using 'n' to represent the count through the 'for' loop), but I don't understand how to display $0-$9 inside the loop. The book I am using dosen't explain it very well (Unix Unbounded a Beginning Approach - Amir Afzel). My instructor isn't very helpful either. Can someone please give me some examples? Also, how do you echo a message to say $# = 5, etc.?
  #2 (permalink)  
Old 11-21-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
Read the rules, there's a link at the bottom of every page. Note rule 6.
Closed Thread

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 01:01 AM.


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