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
01bb616f
Commit
01bb616f
authored
Aug 28, 2020
by
Roshan Rabinarayan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added solution to q6
parent
12795161
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
q6/cuss-words.txt
q6/cuss-words.txt
+3
-0
q6/lyrics.txt
q6/lyrics.txt
+20
-0
q6/q6.sh
q6/q6.sh
+18
-0
No files found.
q6/cuss-words.txt
0 → 100644
View file @
01bb616f
idiot faggot
mind-fuck
redneck
q6/lyrics.txt
0 → 100644
View file @
01bb616f
Don't wanna be an American idiot
Don't want a nation under the new mania
And can you hear the sound of hysteria?
The subliminal mind-fuck America
Welcome to a new kind of tension
All across the alien nation
Where everything isn't meant to be okay
Television dreams of tomorrow
We're not the ones who're meant to follow
For that's enough to argue
Well maybe I'm the faggot America
I'm not a part of a redneck agenda
Now everybody do the propaganda
And sing along to the age of paranoia
Welcome to a new kind of tension
All across the alien nation
Where everything isn't meant to be okay
Television dreams of tomorrow
We're not the ones who're meant to follow
For that's enough to argue
q6/q6.sh
View file @
01bb616f
#!/bin/sh
lyrics
=
$1
cussWords
=
$2
DONE
=
false
out
=
""
;
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
done
done
<
$lyrics
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