Technology Get the latest on technology, electronics and software…

Any Linux Pro's Here?? Need Help Writing Script

Thread Tools
 
Old May 30, 2006 | 04:40 PM
  #1  
wickedk24's Avatar
Thread Starter
Oh well it's
 
Joined: May 2006
Posts: 1,366
Likes: 0
From: SoCal
Any Linux Pro's Here?? Need Help Writing Script

Any Linux Pro's Here?? Need Help Writing Script
Reply
Old May 30, 2006 | 04:43 PM
  #2  
Sly Raskal's Avatar
Team Owner
iTrader: (1)
 
Joined: Sep 2002
Posts: 30,991
Likes: 582
From: Fontana, California
what kind of script? what language?
Reply
Old May 30, 2006 | 04:46 PM
  #3  
wickedk24's Avatar
Thread Starter
Oh well it's
 
Joined: May 2006
Posts: 1,366
Likes: 0
From: SoCal
Originally Posted by Sly Raskal
what kind of script? what language?
Just a regular shell script as follows

I need to create a script that will accept the following:

$1=Name:
$2=Address:
$3=City:
$4=State:
$5=Phone Number:
$6=Fax Number:
$7=Email account:

Required to use double quotes in order to assign the value to the correct postional parameters

Display a usage clause if the inccorect number of values is entered

And to display all the parameters

Thanks !!<!--IBF.ATTACHMENT_765064--><!-- THE POST -->
Reply
Old May 30, 2006 | 04:51 PM
  #4  
fdl's Avatar
fdl
Senior Moderator
 
Joined: Jul 2003
Posts: 21,672
Likes: 1
From: Toronto
You need to be a little more specific. What shell?
Reply
Old May 30, 2006 | 04:53 PM
  #5  
wickedk24's Avatar
Thread Starter
Oh well it's
 
Joined: May 2006
Posts: 1,366
Likes: 0
From: SoCal
Originally Posted by fdl
You need to be a little more specific. What shell?
I believe it's BASH
Reply
Old May 30, 2006 | 04:56 PM
  #6  
Yumcha's Avatar
Senior Moderator
20 Year Member
Photogenic
Community Builder
Liked
 
Joined: Dec 2001
Posts: 169,046
Likes: 23,825
May I charge him my hourly rate if I help write this script...?

I also accept payments in Bandai robots.






Reply
Old May 30, 2006 | 04:56 PM
  #7  
Sly Raskal's Avatar
Team Owner
iTrader: (1)
 
Joined: Sep 2002
Posts: 30,991
Likes: 582
From: Fontana, California
I'm not too family with Bash scripting. As of yet, i've only ever had to write a couple of them. I'm more of a Perl/CGI programmer actually.
Reply
Old May 30, 2006 | 05:03 PM
  #8  
fdl's Avatar
fdl
Senior Moderator
 
Joined: Jul 2003
Posts: 21,672
Likes: 1
From: Toronto
This should get you started

#! /bin/bash
echo -n "Enter value: "
read -e VALUE1
echo Value 1 is $VALUE1


Of course you need to add a loop and other items. Perl would definately be much better for something like this.
Reply
Old May 30, 2006 | 05:04 PM
  #9  
wickedk24's Avatar
Thread Starter
Oh well it's
 
Joined: May 2006
Posts: 1,366
Likes: 0
From: SoCal
Originally Posted by Yumchah
May I charge him my hourly rate if I help write this script...?

I also accept payments in Bandai robots.






So can you help a fellow AZ member out?
Reply
Old May 30, 2006 | 05:04 PM
  #10  
wickedk24's Avatar
Thread Starter
Oh well it's
 
Joined: May 2006
Posts: 1,366
Likes: 0
From: SoCal
Originally Posted by fdl
This should get you started

#! /bin/bash
echo -n "Enter value: "
read -e VALUE1
echo Value 1 is $VALUE1


Of course you need to add a loop and other items. Perl would definately be much better for something like this.
Thansk fdl
Reply
Old May 30, 2006 | 05:26 PM
  #11  
Sly Raskal's Avatar
Team Owner
iTrader: (1)
 
Joined: Sep 2002
Posts: 30,991
Likes: 582
From: Fontana, California
Originally Posted by fdl
Of course you need to add a loop and other items. Perl would definately be much better for something like this.


I love programming in perl. I wish I was more a more advanced programmer in Perl.
Reply
Old May 30, 2006 | 06:00 PM
  #12  
Python2121's Avatar
The hair says it all
 
Joined: Dec 2002
Posts: 7,566
Likes: 0
From: Manhattan, NYC
oh there is SOO much bash scripting info on google

I pretty much taught myself from this alone:
http://www.tldp.org/LDP/abs/html/

edit: and i agree that perl is much better suited for this

Last edited by Python2121; May 30, 2006 at 06:02 PM.
Reply
Old May 30, 2006 | 06:47 PM
  #13  
Yumcha's Avatar
Senior Moderator
20 Year Member
Photogenic
Community Builder
Liked
 
Joined: Dec 2001
Posts: 169,046
Likes: 23,825
Ah...fdl beat me to the punch. Besides, he did it for free...I would've requested payment.


But, on Python2121's comment about finding the scripting on Google. Anyhow...g'luck!
Reply
Old May 31, 2006 | 09:59 AM
  #14  
wickedk24's Avatar
Thread Starter
Oh well it's
 
Joined: May 2006
Posts: 1,366
Likes: 0
From: SoCal
Thanks Guys!!
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
emailnatec
5G TLX Tires, Wheels & Suspension
29
Sep 28, 2018 04:27 PM
rcs86
Car Parts for Sale
3
Aug 2, 2016 06:52 PM
jterp7
3G MDX (2014-2020)
9
Feb 3, 2016 08:34 PM
detailersdomain
Wash & Wax
3
Oct 9, 2015 10:13 PM
AcuraKidd
Non-Automotive & Motorcycle Sales
0
Sep 25, 2015 11:18 PM




All times are GMT -5. The time now is 12:46 PM.