[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
duvida com if
From: |
|
Subject: |
duvida com if |
Date: |
Fri, 19 May 2006 15:43:57 -0300 |
Boa tarde,
Pessoal alguem pode me ajudar com esse script:
#/bin/bash
diretorio=/home/servidor/
excluidos= mp3 videos fotos <-- isso seria nome de diretorios
for DIRETORIOS in `ls -l $diretorio | grep "^d" | awk '{print $8}'`; do
if not $DIRETORIOS in $excluidos then <-- como fazer isso em schell script
tar -jcv "$diretorio""$DIRETORIOS" -f /root/backup_$DIRETORIOS.tar.bz2
done
grato