Commit b28bfd11 authored by Roshan Rabinarayan's avatar Roshan Rabinarayan

updated q6

parent 0aed0d46
#!/bin/sh
lyrics=$1
cussWords=$2
DONE=false
out="";
cp $1 output.txt
until $DONE; do
read s || DONE=true
for words in $s
do
if grep -q "$words" $2
then
out="$out bleep"
else
out="$out $words"
fi
sed -in s/$words/bleep/gI output.txt
done
done < $lyrics
echo $out
\ No newline at end of file
done < $2
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