This code keeps trying to execute the variable instead of comparing it.
for filestotar in `ls --almost-all --directory -x1 *` do if ["$filestotar" != "advserver"]; then #!tar --directory /backup/tar.archive --create --verbose --file test.tar /backup/$filestotar/* counter=`expr $counter + 1` fi done Output. It tries to execute the variable $filestotar rather then compare it to "advserver" Any ideas??? ------ advserver ./archive.sh: [advserver: command not found agracon ./archive.sh: [agracon: command not found agullifer ./archive.sh: [agullifer: command not found bob ./archive.sh: [bob: command not found dons ./archive.sh: [dons: command not found gina ./archive.sh: [gina: command not found Gmalleo ./archive.sh: [Gmalleo: command not found kluiere ./archive.sh: [kluiere: command not found logs ./archive.sh: [logs: command not found lost+found ./archive.sh: [lost+found: command not found paulette ./archive.sh: [paulette: command not found pkraus-xp ./archive.sh: [pkraus-xp: command not found rwollenburg ./archive.sh: [rwollenburg: command not found scripts ./archive.sh: [scripts: command not found tar.archive ./archive.sh: [tar.archive: command not found vwalsh ./archive.sh: [vwalsh: command not found 0 Paul Kraus Network Administrator PEL Supply Company 216.267.5775 Voice 216-267-6176 Fax www.pelsupply.com
BEGIN:VCARD VERSION:2.1 N:Kraus;Paul FN:Paul Kraus ([EMAIL PROTECTED]) ORG:PEL Supply Company TITLE:Network Administrator TEL;WORK;VOICE:(216) 267-5775 TEL;CELL;VOICE:(216) 410-5526 TEL;WORK;FAX:(216) 267-6176 ADR;WORK:;;4666 Manufacturing Road;Cleveland;Ohio;44135;United States of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:4666 Manufacturing Road=0D=0ACleveland, Ohio 44135=0D=0AUnited States of Ame= rica ADR;HOME:;;;;;;United States LABEL;HOME:United States URL;WORK:http://www.pelsupply.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20020416T182124Z END:VCARD