Search Results

Search: Posts Made By: Archana Batta
6,602
Posted By jim mcnamara
In an awk script or a shell script it is used as...
In an awk script or a shell script it is used as a logical and operator:
awk : if ($1=="A" && $2=="B") {print $3}

In shell command lines (or scripts) it is also used to create a multiple...
6,602
Posted By bakunin
No, it isn't. Note that there is no such thing as...
No, it isn't. Note that there is no such thing as a "meaning of <whatever> in UNIX" and this is where your confusion perhaps comes from.

When you write the following in a shell script:

if [...
6,602
Posted By Scrutinizer
The -a operand is deprecated in the POSIX...
The -a operand is deprecated in the POSIX standard. The recommended way is to use the && operator like so (leaving the variable expansions unquoted, like in your example):

if [ $a ] && [ $b ]...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy