Created
May 28, 2013 22:08
-
-
Save pbalduino/5666549 to your computer and use it in GitHub Desktop.
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 | |
# SCRIPT: method1.sh | |
# PURPOSE: Process a file line by line with PIPED while-read loop. | |
FILENAME=$1 | |
count=0 | |
cat $FILENAME | while read LINE | |
do | |
ufw deny from $LINE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment