LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2011, 09:07 PM   #1
lainey
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Rep: Reputation: Disabled
Question Display what is Typed after script


Hi

I need to display what is typed after I execute the script, ie: 05-hello-2 Sally

It should say
Hello, Sally

My code is:

echo "Hello, !"

exit 0

How do I get it to put whatever the user types after the execution into there so it says that after Hello

Thank you in advance
 
Old 11-14-2011, 09:42 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,245

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Search for script positional parameters. Should get you going.
 
  


Reply


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
Bash script to accept password and replace characters with * as they are typed krisdames Programming 16 10-03-2011 12:22 AM
which file contains a list of all commands that have been typed frontlinedr Linux - General 5 07-14-2006 07:35 AM
how to see typed commands with date? vaoc Linux - Security 1 08-06-2004 02:43 PM
show all terminal typed commands joulupukki Linux - Newbie 6 05-10-2004 05:42 AM
start vim when vi is typed PlatinumRik Linux - Software 7 03-15-2004 05:24 PM


All times are GMT -5. The time now is 02:12 AM.

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