Guest User

Untitled

a guest
Feb 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Receive SED SCRIPT WORDLIST
  4.  
  5. if [ -f temp.txt ];
  6. then
  7. > temp.txt
  8. else
  9. touch temp.txt
  10. fi
  11.  
  12. while IFS='' read -r line || [[ -n "$line" ]];
  13. do
  14. echo -e "s/$line/p" >> temp.txt
  15.  
  16. while IFS='' read -r line || [[ -n "$line" ]];
  17. do
  18. sed -nf temp.txt $2
  19. done
  20. > temp.txt
  21. done < $1
Add Comment
Please, Sign In to add comment