[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Redhat] Doubt on shellscripts



Krikket wrote:

On Mon, 8 Dec 2003, B, Prasada Rao (Cognizant) wrote:

[...]

2. What is $? is



I *think* it's return the first/next paramater given on the command line.


No, it's the result of command (eg 0 ok, 1 error ...)



3. What $1 returns ? Will it return the second variable value?


$_ current shell $0 name of running script $1 first argument, $2 second ...







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]