Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

: test: ] missing

Status
Not open for further replies.

grapes12

Technical User
Mar 2, 2010
124
ZA
receiving this error when doing the following:
Code:
for P in $printer_list; do
   if [ "$P" -eq 0117bd1]; then
                echo "\n\t Adding printers $P !!!!"

is something amiss
 
[ and ] need whitespace around them...

HTH,

p5wizard
 
man test

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top