Untitled
unknown
plain_text
a year ago
228 B
6
Indexable
#!/bin/bash BASEDIR=$(pwd) echo "se ha guardado el directorio" for FILE in $BASEDIR/* do if [ $(grep "#TAG" $FILE -c) -gt 3 ] then echo "borrar $FILE " rm $FILE fi done
Leave a Comment
#!/bin/bash BASEDIR=$(pwd) echo "se ha guardado el directorio" for FILE in $BASEDIR/* do if [ $(grep "#TAG" $FILE -c) -gt 3 ] then echo "borrar $FILE " rm $FILE fi done