Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS699OutLab2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Roshan Rabinarayan
CS699OutLab2
Commits
b28bfd11
Commit
b28bfd11
authored
Aug 29, 2020
by
Roshan Rabinarayan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated q6
parent
0aed0d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
q6/q6.sh
q6/q6.sh
+5
-11
No files found.
q6/q6.sh
View file @
b28bfd11
#!/bin/sh
#!/bin/sh
lyrics
=
$1
cussWords
=
$2
DONE
=
false
DONE
=
false
out
=
""
;
cp
$1
output.txt
until
$DONE
;
do
until
$DONE
;
do
read
s
||
DONE
=
true
read
s
||
DONE
=
true
for
words
in
$s
for
words
in
$s
do
do
if
grep
-q
"
$words
"
$2
then
sed
-in
s/
$words
/bleep/gI output.txt
out
=
"
$out
bleep"
else
out
=
"
$out
$words
"
fi
done
done
done
<
$lyrics
done
<
$2
echo
$out
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment