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

part 1 done

parent 2c0eb4b6
No related branches found
No related tags found
No related merge requests found
./nomes-de-bebes/ ./nomes-de-bebes/
./PubMed/
./Sinonimos/
#!/bin/bash #!/bin/bash
if [ $# -lt 3 ] || [ $# -gt 5 ]; then
>&2 echo "Uso: <dpm> <ds> <t1> [<t2> [<t3>]]"
exit 1
fi
FONTE=$1
DESTINO=$2
T1=$3
T2=$4
T3=$5
if [ ! -d $FONTE ]; then
>&2 echo "Erro: $FONTE não é um diretório."
exit 1
fi
if [ ! -d $DESTINO ]; then
mkdir $DESTINO
fi
DESTINO=$(realpath $DESTINO)
cd $FONTE
for ARQ in *; do
awk '(NR>1)' $ARQ | grep -iF "$T1" | grep -iF "$T2" | grep -iF "$T3" > $DESTINO/$ARQ
done
cd - > /dev/null
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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