LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08: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, 08:42 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,005

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
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 17 01-18-2018 12:02 AM
which file contains a list of all commands that have been typed frontlinedr Linux - General 5 07-14-2006 06:35 AM
how to see typed commands with date? vaoc Linux - Security 1 08-06-2004 01:43 PM
show all terminal typed commands joulupukki Linux - Newbie 6 05-10-2004 04:42 AM
start vim when vi is typed PlatinumRik Linux - Software 7 03-15-2004 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 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
Open Source Consulting | Domain Registration