Skip to content

Instantly share code, notes, and snippets.

@pbalduino
Created May 28, 2013 22:08
Show Gist options
  • Save pbalduino/5666549 to your computer and use it in GitHub Desktop.
Save pbalduino/5666549 to your computer and use it in GitHub Desktop.
#!/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