Skip to content
Snippets Groups Projects
Commit e43ede9f authored by Pedro Folloni Pesserl's avatar Pedro Folloni Pesserl
Browse files

fix file scope for scripts

parent fa43b178
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ fi ...@@ -25,7 +25,7 @@ fi
DESTINO=$(realpath $DESTINO) DESTINO=$(realpath $DESTINO)
cd $FONTE 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 awk '(NR>1)' $ARQ | grep -iF "$T1" | grep -iF "$T2" | grep -iF "$T3" > $DESTINO/$ARQ
done done
cd - > /dev/null cd - > /dev/null
...@@ -23,9 +23,7 @@ DSIN=$(realpath $DSIN) ...@@ -23,9 +23,7 @@ DSIN=$(realpath $DSIN)
cd $DSIN cd $DSIN
for FATOR in *; do for FATOR in *; do
CONT=$(grep -iwF -f $FATOR $DCSV/*.csv | wc -l)
CONT=$(grep -iwF -f $FATOR $DCSV/* | wc -l)
echo "${FATOR%.*}:$CONT" echo "${FATOR%.*}:$CONT"
done done
cd - > /dev/null cd - > /dev/null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment