Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unagi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vishal
unagi
Commits
7496332a
Commit
7496332a
authored
Aug 29, 2020
by
Mahesh Ashok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Committing q2, a6 and q4 files
parent
104a0e4e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
831 additions
and
0 deletions
+831
-0
week2/OutLab/unagi/q2/.bashrc
week2/OutLab/unagi/q2/.bashrc
+128
-0
week2/OutLab/unagi/q2/output.PNG
week2/OutLab/unagi/q2/output.PNG
+0
-0
week2/OutLab/unagi/q4/q4.sh
week2/OutLab/unagi/q4/q4.sh
+25
-0
week2/OutLab/unagi/q6/cuss-words.txt
week2/OutLab/unagi/q6/cuss-words.txt
+451
-0
week2/OutLab/unagi/q6/lyrics.txt
week2/OutLab/unagi/q6/lyrics.txt
+109
-0
week2/OutLab/unagi/q6/output.txt
week2/OutLab/unagi/q6/output.txt
+109
-0
week2/OutLab/unagi/q6/q6.sh
week2/OutLab/unagi/q6/q6.sh
+9
-0
No files found.
week2/OutLab/unagi/q2/.bashrc
0 → 100644
View file @
7496332a
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case
$-
in
*
i
*
)
;;
*
)
return
;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL
=
ignoreboth
# append to the history file, don't overwrite it
shopt
-s
histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE
=
1000
HISTFILESIZE
=
2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt
-s
checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[
-x
/usr/bin/lesspipe
]
&&
eval
"
$(
SHELL
=
/bin/sh lesspipe
)
"
# set variable identifying the chroot you work in (used in the prompt below)
if
[
-z
"
${
debian_chroot
:-}
"
]
&&
[
-r
/etc/debian_chroot
]
;
then
debian_chroot
=
$(
cat
/etc/debian_chroot
)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case
"
$TERM
"
in
xterm-color|
*
-256color
)
color_prompt
=
yes
;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if
[
-n
"
$force_color_prompt
"
]
;
then
if
[
-x
/usr/bin/tput
]
&&
tput setaf 1
>
&/dev/null
;
then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt
=
yes
else
color_prompt
=
fi
fi
if
[
"
$color_prompt
"
=
yes
]
;
then
PS1
=
'${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1
=
'${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset
color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case
"
$TERM
"
in
xterm
*
|
rxvt
*
)
PS1
=
"
\[\e
]0;
${
debian_chroot
:+
(
$debian_chroot
)
}
\u
@
\h
:
\w\a\]
$PS1
"
;;
*
)
;;
esac
# enable color support of ls and also add handy aliases
if
[
-x
/usr/bin/dircolors
]
;
then
test
-r
~/.dircolors
&&
eval
"
$(
dircolors
-b
~/.dircolors
)
"
||
eval
"
$(
dircolors
-b
)
"
alias ls
=
'ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep
=
'grep --color=auto'
alias
fgrep
=
'fgrep --color=auto'
alias
egrep
=
'egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias
ll
=
'ls -alF'
alias
la
=
'ls -A'
alias
l
=
'ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias
alert
=
'notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '
\'
's/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'
\'
')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if
[
-f
~/.bash_aliases
]
;
then
.
~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if
!
shopt
-oq
posix
;
then
if
[
-f
/usr/share/bash-completion/bash_completion
]
;
then
.
/usr/share/bash-completion/bash_completion
elif
[
-f
/etc/bash_completion
]
;
then
.
/etc/bash_completion
fi
fi
#echo "Hello world!!" | sed 's/\//\\\//g'
echo
\
' __ __ _
/ / / /___ ____ _____ _(_)
/ / / / __ \/ __ `/ __ `/ /
/ /_/ / / / / /_/ / /_/ / /
\____/_/ /_/\__,_/\__, /_/
/____/
'
\ No newline at end of file
week2/OutLab/unagi/q2/output.PNG
0 → 100644
View file @
7496332a
11 KB
week2/OutLab/unagi/q4/q4.sh
View file @
7496332a
#! /bin/bash
arr
=(
)
counts
=
0
while
read
l
do
arr[counts]
=
$l
counts
=
$((
counts
+
1
))
done
< generated_output.txt
count
=
0
ans
=
0
while
read
l
do
if
((
arr[count]
==
$l
))
then
ans
=
$((
ans
+
1
))
fi
count
=
$((
count
+
1
))
done
< actual_output.txt
echo
"Secured
$ans
marks out of "
${#
arr
[@]
}
week2/OutLab/unagi/q6/cuss-words.txt
0 → 100644
View file @
7496332a
4r5e
5h1t
5hit
a55
anal
anus
ar5e
arrse
arse
ass
ass-fucker
asses
assfucker
assfukka
asshole
assholes
asswhole
a_s_s
b!tch
b00bs
b17ch
b1tch
ballbag
balls
ballsack
bastard
beastial
beastiality
bellend
bestial
bestiality
bi+ch
biatch
bitch
bitcher
bitchers
bitches
bitchin
bitching
bloody
blow job
blowjob
blowjobs
boiolas
bollock
bollok
boner
boob
boobs
booobs
boooobs
booooobs
booooooobs
breasts
buceta
bugger
bum
bunny fucker
butt
butthole
buttmunch
buttplug
c0ck
c0cksucker
carpet muncher
cawk
chink
cipa
cl1t
clit
clitoris
clits
cnut
cock
cock-sucker
cockface
cockhead
cockmunch
cockmuncher
cocks
cocksuck
cocksucked
cocksucker
cocksucking
cocksucks
cocksuka
cocksukka
cok
cokmuncher
coksucka
coon
cox
crap
cum
cummer
cumming
cums
cumshot
cunilingus
cunillingus
cunnilingus
cunt
cuntlick
cuntlicker
cuntlicking
cunts
cyalis
cyberfuc
cyberfuck
cyberfucked
cyberfucker
cyberfuckers
cyberfucking
d1ck
damn
dick
dickhead
dildo
dildos
dink
dinks
dirsa
dlck
dog-fucker
doggin
dogging
donkeyribber
doosh
duche
dyke
ejaculate
ejaculated
ejaculates
ejaculating
ejaculatings
ejaculation
ejakulate
f u c k
f u c k e r
f4nny
fag
fagging
faggitt
faggot
faggs
fagot
fagots
fags
fanny
fannyflaps
fannyfucker
fanyy
fatass
fcuk
fcuker
fcuking
feck
fecker
felching
fellate
fellatio
fingerfuck
fingerfucked
fingerfucker
fingerfuckers
fingerfucking
fingerfucks
fistfuck
fistfucked
fistfucker
fistfuckers
fistfucking
fistfuckings
fistfucks
flange
fook
fooker
fuck
fucka
fucked
fucker
fuckers
fuckhead
fuckheads
fuckin
fucking
fuckings
fuckingshitmotherfucker
fuckme
fucks
fuckwhit
fuckwit
fudge packer
fudgepacker
fuk
fuker
fukker
fukkin
fuks
fukwhit
fukwit
fux
fux0r
f_u_c_k
gangbang
gangbanged
gangbangs
gaylord
gaysex
goatse
God
god-dam
god-damned
goddamn
goddamned
hardcoresex
hell
heshe
hoar
hoare
hoer
homo
hore
horniest
horny
hotsex
jack-off
jackoff
jap
jerk-off
jism
jiz
jizm
jizz
kawk
knob
knobead
knobed
knobend
knobhead
knobjocky
knobjokey
kock
kondum
kondums
kum
kummer
kumming
kums
kunilingus
l3i+ch
l3itch
labia
lmfao
lust
lusting
m0f0
m0fo
m45terbate
ma5terb8
ma5terbate
masochist
master-bate
masterb8
masterbat*
masterbat3
masterbate
masterbation
masterbations
masturbate
mo-fo
mof0
mofo
mothafuck
mothafucka
mothafuckas
mothafuckaz
mothafucked
mothafucker
mothafuckers
mothafuckin
mothafucking
mothafuckings
mothafucks
mother fucker
motherfuck
motherfucked
motherfucker
motherfuckers
motherfuckin
motherfucking
motherfuckings
motherfuckka
motherfucks
muff
mutha
muthafecker
muthafuckker
muther
mutherfucker
n1gga
n1gger
nazi
nigg3r
nigg4h
nigga
niggah
niggas
niggaz
nigger
niggers
nob
nob jokey
nobhead
nobjocky
nobjokey
numbnuts
nutsack
orgasim
orgasims
orgasm
orgasms
p0rn
pawn
pecker
penis
penisfucker
phonesex
phuck
phuk
phuked
phuking
phukked
phukking
phuks
phuq
pigfucker
pimpis
piss
pissed
pisser
pissers
pisses
pissflaps
pissin
pissing
pissoff
poop
porn
porno
pornography
pornos
prick
pricks
pron
pube
pusse
pussi
pussies
pussy
pussys
rectum
retard
rimjaw
rimming
s hit
s.o.b.
sadist
schlong
screwing
scroat
scrote
scrotum
semen
sex
sh!+
sh!t
sh1t
shag
shagger
shaggin
shagging
shemale
shi+
shit
shitdick
shite
shited
shitey
shitfuck
shitfull
shithead
shiting
shitings
shits
shitted
shitter
shitters
shitting
shittings
shitty
skank
slut
sluts
smegma
smut
snatch
son-of-a-bitch
spac
spunk
s_h_i_t
t1tt1e5
t1tties
teets
teez
testical
testicle
tit
titfuck
tits
titt
tittie5
tittiefucker
titties
tittyfuck
tittywank
titwank
tosser
turd
tw4t
twat
twathead
twatty
twunt
twunter
v14gra
v1gra
vagina
viagra
vulva
w00se
wang
wank
wanker
wanky
whoar
whore
willies
willy
xrated
xxx
\ No newline at end of file
week2/OutLab/unagi/q6/lyrics.txt
0 → 100644
View file @
7496332a
May I have your attention, please?
May I have your attention, please?
Will the real Slim Shady please stand up?
I repeat, will the real Slim Shady please stand up?
We're gonna have a problem here
Y'all act like you never seen a white person before
Jaws all on the floor like Pam like Tommy just burst in the door
And started whoopin' her ass worse than before
They first were divorced, throwin' her over furniture (Agh!)
It's the return of the "Ah, wait, no way, you're kidding
He didn't just say what I think he did, did he?"
And Dr. Dre said, nothing, you idiots!
Dr. Dre's dead, he's locked in my basement (ha ha!)
Feminist women love Eminem
"Chicka, chicka, chicka, Slim Shady, I'm sick of him
Look at him, walkin' around, grabbin' his you-know-what
Flippin' the you-know-who, " "Yeah, but he's so cute though."
Yeah, I probably got a couple of screws up in my head loose
But no worse than what's goin' on in your parents' bedrooms
Sometimes I wanna get on TV and just let loose
But can't, but it's cool for Tom Green to hump a dead moose
"My bum is on your lips, my bum is on your lips"
And if I'm lucky, you might just give it a little kiss
And that's the message that we deliver to little kids
And expect them not to know what a woman's clitoris is
Of course they're gonna know what intercourse is
By the time they hit fourth grade
They've got the Discovery Channel, don't they?
We ain't nothin' but mammals—well, some of us, cannibals
Who cut other people open like cantaloupes
But if we can hump dead animals and antelopes
Then there's no reason that a man and another man can't elope
But if you feel like I feel, I got the antidote
Women, wave your pantyhose, sing the chorus, and it goes
I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
Will Smith don't gotta cuss in his raps to sell records
Well, I do, so fuck him and fuck you too!
You think I give a damn about a Grammy?
Half of you critics can't even stomach me, let alone stand me
"But Slim, what if you win, wouldn't it be weird?"
Why, so you guys could just lie to get me here?
So you can sit me here next to Britney Spears?
Shit, Christina Aguilera better switch me chairs
So I can sit next to Carson Daly and Fred Durst
And hear 'em argue over who she gave head to first
Little bitch put me on blast on MTV
"Yeah, he's cute, but I think he's married to Kim, hee-hee."
I should download her audio on MP3
And show the whole world how you gave Eminem VD
I'm sick of you little girl and boy groups
All you do is annoy me, so I have been sent here to destroy you
And there's a million of us just like me
Who cuss like me, who just don't give a fuck like me
Who dress like me, walk, talk and act like me
And just might be the next best thing, but not quite me
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
I'm like a head trip to listen to, 'cause I'm only givin' you
Things you joke about with your friends inside your livin' room
The only difference is I got the balls to say it in front of y'all
And I don't gotta be false or sugarcoat it at all
I just get on the mic and spit it
And whether you like to admit it, I just shit it
Better than 90% of you rappers out can
Then you wonder: "How can
Kids eat up these albums like Valiums?"
It's funny, 'cause at the rate I'm going, when I'm 30
I'll be the only person in the nursing home flirting
Pinching nurse's asses when I'm jacking off with Jergens
And I'm jerking, but this whole bag of Viagra isn't working
And every single person is a Slim Shady lurking
He could be working at Burger King, spittin' on your onion rings
Or in the parking lot, circling, screaming, "I don't give a fuck!"
With his windows down and his system up
So will the real Shady please stand up
And put one of those fingers on each hand up?
And be proud to be outta your mind and outta control
And one more time, loud as you can, how does it go?
I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
Ha ha, I guess there's a Slim Shady in all of us
Fuck it, let's all stand up!
\ No newline at end of file
week2/OutLab/unagi/q6/output.txt
0 → 100644
View file @
7496332a
May I have your attention, please?
May I have your attention, please?
Will the real Slim Shady please stand up?
I repeat, will the real Slim Shady please stand up?
We're gonna have a problem here
Y'all act like you never seen a white person before
Jaws all on the floor like Pam like Tommy just burst in the door
And started whoopin' her bleep worse than before
They first were divorced, throwin' her over furniture (Agh!)
It's the return of the "Ah, wait, no way, you're kidding
He didn't just say what I think he did, did he?"
And Dr. Dre said, nothing, you idiots!
Dr. Dre's dead, he's locked in my bableept (ha ha!)
Feminist women love Eminem
"Chicka, chicka, chicka, Slim Shady, I'm sick of him
Look at him, walkin' around, grabbin' his you-know-what
Flippin' the you-know-who, " "Yeah, but he's so cute though."
Yeah, I probably got a couple of screws up in my head loose
But no worse than what's goin' on in your parents' bedrooms
Sometimes I wanna get on TV and just let loose
But can't, but it's cool for Tom Green to hump a dead moose
"My bleep is on your lips, my bleep is on your lips"
And if I'm lucky, you might just give it a little kiss
And that's the message that we deliver to little kids
And expect them not to know what a woman's bleeporis is
Of course they're gonna know what intercourse is
By the time they hit fourth grade
They've got the Discovery Channel, don't they?
We ain't nothin' but mammals—well, some of us, cannibals
Who cut other people open like cantaloupes
But if we can hump dead animals and antelopes
Then there's no reason that a man and another man can't elope
But if you feel like I feel, I got the antidote
Women, wave your pantyhose, sing the chorus, and it goes
I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
Will Smith don't gotta cuss in his raps to sell records
Well, I do, so bleep him and bleep you too!
You think I give a bleep about a Grammy?
Half of you critics can't even stomach me, let alone stand me
"But Slim, what if you win, wouldn't it be weird?"
Why, so you guys could just lie to get me here?
So you can sit me here next to Britney Spears?
bleep, Christina Aguilera better switch me chairs
So I can sit next to Carson Daly and Fred Durst
And hear 'em argue over who she gave head to first
Little bleep put me on blast on MTV
"Yeah, he's cute, but I think he's married to Kim, hee-hee."
I should download her audio on MP3
And show the whole world how you gave Eminem VD
I'm sick of you little girl and boy groups
All you do is annoy me, so I have been sent here to destroy you
And there's a million of us just like me
Who cuss like me, who just don't give a bleep like me
Who dress like me, walk, talk and act like me
And just might be the next best thing, but not quite me
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
I'm like a head trip to listen to, 'cause I'm only givin' you
Things you joke about with your friends inside your livin' room
The only difference is I got the bleep to say it in front of y'all
And I don't gotta be false or sugarcoat it at all
I just get on the mic and spit it
And whether you like to admit it, I just bleep it
Better than 90% of you rappers out can
Then you wonder: "How can
Kids eat up these albleeps like Valiums?"
It's funny, 'cause at the rate I'm going, when I'm 30
I'll be the only person in the nursing home flirting
Pinching nurse's bleepes when I'm jacking off with Jergens
And I'm jerking, but this whole bag of bleep isn't working
And every single person is a Slim Shady lurking
He could be working at Burger King, spittin' on your onion rings
Or in the parking lot, circling, screaming, "I don't give a bleep!"
With his windows down and his system up
So will the real Shady please stand up
And put one of those fingers on each hand up?
And be proud to be outta your mind and outta control
And one more time, loud as you can, how does it go?
I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
'Cause I'm Slim Shady, yes I'm the real Shady
All you other Slim Shadys are just imitating
So won't the real Slim Shady please stand up
Please stand up, please stand up?
Ha ha, I guess there's a Slim Shady in all of us
bleep it, let's all stand up!
\ No newline at end of file
week2/OutLab/unagi/q6/q6.sh
View file @
7496332a
#!/bin/bash
mapfile
-t
cussWords <
$2
i
=
0
for
cussWord
in
"
${
cussWords
[@]
}
"
;
do
s
=
$"
$s
s/
$cussWord
/bleep/gI;"
done
sed
-e
"
$s
"
<
$1
\ 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