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
 
LinkBack Search this Thread
Old 03-18-2004, 09:33 AM   #1
phantomdude
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Query about script variable


I was just wondering what this variable returns in a script:

$@

Any assistance is appreciated!
 
Old 03-18-2004, 11:21 AM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Assuming you mean shell scripts (like bash), $@ evaluates to all of the parameters passed to the script. So if the script was run like this:

myscript a b c

Then $@ would be "a b c". Check out the bash manual page for details.

It might mean something different in other scripting languages... not sure.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
variable one script to another rharris72 Programming 2 11-23-2005 01:17 AM
Simple shell script query sachinh Programming 5 09-07-2005 04:02 AM
php mysql variable arguments in query. ldp Linux - Software 0 10-26-2004 07:56 AM
How to pass mysql query to a variable? chynna_v Programming 4 09-03-2004 05:09 AM
need script to query tape drive Finlay Linux - Software 14 07-22-2004 07:43 PM


All times are GMT -5. The time now is 02:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration