Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Shell script

What does these two line in shell script mean ? What's the usage for "[ ]" and "&&" ?

  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
Tks
Avatar of ozo
ozo
Flag of United States of America image

see
man test
SOLUTION
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK
AXISHK

ASKER

Tks