Created
June 22, 2016 20:00
-
-
Save tiagovizoto/e0917b51c26aab8d9656250765198262 to your computer and use it in GitHub Desktop.
50_linhas.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "Digite o caminho do arquivo: " CAMINHO | |
while [ 1 = 1 ] | |
do | |
DATA=$(date) | |
if [ "$(cat $CAMINHO | wc -l)" -ge 50 ] | |
then | |
echo " $DATA O Arquivo $CAMINHO passou de 50 linhas">>/home/mago/linhas.log | |
break | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment