Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-18-2004, 10:33 AM   #1
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, 12:21 PM   #2
LQ 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.


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
variable one script to another rharris72 Programming 2 11-23-2005 02:17 AM
Simple shell script query sachinh Programming 5 09-07-2005 05:02 AM
php mysql variable arguments in query. ldp Linux - Software 0 10-26-2004 08:56 AM
How to pass mysql query to a variable? chynna_v Programming 4 09-03-2004 06:09 AM
need script to query tape drive Finlay Linux - Software 14 07-22-2004 08:43 PM > Forums > Linux Forums > Linux - Newbie

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

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