Commit 402e8c8b authored by Mayur Rathod's avatar Mayur Rathod

q5 solution

parent b4f2162f
#!/usr/bin/bash
cp $1 templyricsfile.txt
cusswords=$2
while read line; do
word=$line
sed -i "s/$line\b/bleep/gI" templyricsfile.txt
done < $cusswords
cat templyricsfile.txt
rm templyricsfile.txt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment