Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Receive SED SCRIPT WORDLIST
- if [ -f temp.txt ];
- then
- > temp.txt
- else
- touch temp.txt
- fi
- while IFS='' read -r line || [[ -n "$line" ]];
- do
- echo -e "s/$line/p" >> temp.txt
- while IFS='' read -r line || [[ -n "$line" ]];
- do
- sed -nf temp.txt $2
- done
- > temp.txt
- done < $1
Add Comment
Please, Sign In to add comment