diff --git a/tshell/tshell_p1.sh b/tshell/tshell_p1.sh index 54e3a166b750d79c4c12ee17a998a86b60d47815..7b3e4486c0d53216c89f7203a3bc17172914c2ee 100755 --- a/tshell/tshell_p1.sh +++ b/tshell/tshell_p1.sh @@ -25,7 +25,7 @@ fi DESTINO=$(realpath $DESTINO) cd $FONTE -for ARQ in *; do +for ARQ in *.csv; do awk '(NR>1)' $ARQ | grep -iF "$T1" | grep -iF "$T2" | grep -iF "$T3" > $DESTINO/$ARQ done cd - > /dev/null diff --git a/tshell/tshell_p2.sh b/tshell/tshell_p2.sh index e7cdd2eddfbb0ce0b1a666e90126a9ed7f1d81ca..715f7a668bef882b125dd54b11940a1afb21df7f 100755 --- a/tshell/tshell_p2.sh +++ b/tshell/tshell_p2.sh @@ -23,9 +23,7 @@ DSIN=$(realpath $DSIN) cd $DSIN for FATOR in *; do - - CONT=$(grep -iwF -f $FATOR $DCSV/* | wc -l) - + CONT=$(grep -iwF -f $FATOR $DCSV/*.csv | wc -l) echo "${FATOR%.*}:$CONT" done cd - > /dev/null