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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help on installing an EASY to use and easy to install command line text editor EugeneG UNIX for Dummies Questions & Answers 4 07-16-2007 08:53 AM
Help with an 'easy' script lestat_ecuador UNIX for Dummies Questions & Answers 3 01-13-2007 10:30 PM
Help with an 'easy' script lestat_ecuador Shell Programming and Scripting 7 01-13-2007 04:13 PM
Easy script guest100 UNIX for Dummies Questions & Answers 8 03-07-2005 07:57 AM
shell script : text manipulation (easy quesiton) champion Shell Programming and Scripting 3 07-01-2002 12:10 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-30-2006
Registered User
 

Join Date: Apr 2006
Posts: 7
easy script

a script, cheer that prints its parameter as shown in the example below.
eg:
$ cheer U N I X
Give me a U!
U!
Give me a N!
N!
Give me a I!
I!
Give me a X!
X!

#!/bin/sh

for letter
do
echo "Give me a $letter!";echo "$letter!"
done

this is the code i used for the above script


i have done wat is above but i want to know how to reverse the order
eg:
$revcheer U N I X

should give me the following output
:
Give me a X!
X!
Give me a I!
I!
Give me a N!
N!
Give me a U!
U!
Forum Sponsor
  #2  
Old 04-30-2006
tayyabq8's Avatar
Moderator
 

Join Date: Nov 2004
Location: Bahrain
Posts: 555
No classroom questions. Pls read the RULES.
  #3  
Old 04-30-2006
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Very good advice, shereenmotor.

I will close this thread.

Thanks
ZB
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0