Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bash_day2_Outlab
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ANKITA SINGH
bash_day2_Outlab
Commits
73525a22
Commit
73525a22
authored
Aug 11, 2019
by
ANKITA SINGH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit for Outlab assignment Bash day 2
parents
Changes
17
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
729 additions
and
0 deletions
+729
-0
HackaholicGirls/readme.txt
HackaholicGirls/readme.txt
+7
-0
HackaholicGirls/script1/Scipt1_Output.png
HackaholicGirls/script1/Scipt1_Output.png
+0
-0
HackaholicGirls/script1/bashrc
HackaholicGirls/script1/bashrc
+131
-0
HackaholicGirls/script2/Script2_output.png
HackaholicGirls/script2/Script2_output.png
+0
-0
HackaholicGirls/script2/bashrc
HackaholicGirls/script2/bashrc
+131
-0
HackaholicGirls/script3/script3.sh
HackaholicGirls/script3/script3.sh
+13
-0
HackaholicGirls/script4/input
HackaholicGirls/script4/input
+34
-0
HackaholicGirls/script4/sample_output
HackaholicGirls/script4/sample_output
+102
-0
HackaholicGirls/script4/script4.sh
HackaholicGirls/script4/script4.sh
+26
-0
HackaholicGirls/script5/Script5_output.png
HackaholicGirls/script5/Script5_output.png
+0
-0
HackaholicGirls/script5/bashrc
HackaholicGirls/script5/bashrc
+131
-0
HackaholicGirls/script6/cussWords
HackaholicGirls/script6/cussWords
+6
-0
HackaholicGirls/script6/lyricFile
HackaholicGirls/script6/lyricFile
+115
-0
HackaholicGirls/script6/script6.sh
HackaholicGirls/script6/script6.sh
+25
-0
HackaholicGirls/script7/sample_output
HackaholicGirls/script7/sample_output
+0
-0
HackaholicGirls/script7/script7.sh
HackaholicGirls/script7/script7.sh
+8
-0
HackaholicGirls/script7/thorBiography
HackaholicGirls/script7/thorBiography
+0
-0
No files found.
HackaholicGirls/readme.txt
0 → 100644
View file @
73525a22
Name Contribution git username
Ankita Singh 1,2 and 5 ankitasingh
Mudra Sahu 3 and 6 msahu
Muttineni Navya 4 and 7 mnavya
References:
stackoverflow and the references provided on the moodle
HackaholicGirls/script1/Scipt1_Output.png
0 → 100644
View file @
73525a22
31.5 KB
HackaholicGirls/script1/bashrc
0 → 100644
View file @
73525a22
# ~/.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) 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
# 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
#creating alias as a part of outlab assignment
alias fileds='du -h'
#Creating welcome note as a part of outlab assignment
echo "__________ ___ ___ __ .__ .__ .__ "
echo "\______ \ ____ / | \_____ ____ | | _______ | |__ ____ | | |__| ____ "
echo " | | _// __ \ / ~ \__ \ _/ ___\| |/ /\__ \ | | \ / _ \| | | |/ ___\ "
echo " | | \ ___/ \ Y // __ \\ \___| < / __ \| Y ( <_> ) |_| \ \___ "
echo " |______ /\___ > \___|_ /(____ /\___ >__|_ \(____ /___| /\____/|____/__|\___ >"
echo " \/ \/ \/ \/ \/ \/ \/ \/ \/ "
#creating an alias for listing the courses of cse.iitb
alias cseiitb='wget -qO- https://www.cse.iitb.ac.in/page137 | grep -Eoi '\''cs [0-9][0-9][0-9]'\''|uniq '
HackaholicGirls/script2/Script2_output.png
0 → 100644
View file @
73525a22
26.8 KB
HackaholicGirls/script2/bashrc
0 → 100644
View file @
73525a22
# ~/.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) 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
# 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
#creating alias as a part of outlab assignment
alias fileds='du -h'
#Creating welcome note as a part of outlab assignment
echo "__________ ___ ___ __ .__ .__ .__ "
echo "\______ \ ____ / | \_____ ____ | | _______ | |__ ____ | | |__| ____ "
echo " | | _// __ \ / ~ \__ \ _/ ___\| |/ /\__ \ | | \ / _ \| | | |/ ___\ "
echo " | | \ ___/ \ Y // __ \\ \___| < / __ \| Y ( <_> ) |_| \ \___ "
echo " |______ /\___ > \___|_ /(____ /\___ >__|_ \(____ /___| /\____/|____/__|\___ >"
echo " \/ \/ \/ \/ \/ \/ \/ \/ \/ "
#creating an alias for listing the courses of cse.iitb
alias cseiitb='wget -qO- https://www.cse.iitb.ac.in/page137 | grep -Eoi '\''cs [0-9][0-9][0-9]'\''|uniq '
HackaholicGirls/script3/script3.sh
0 → 100755
View file @
73525a22
dir
=
"
$1
/*"
count
=
0
for
file
in
$dir
;
do
if
[
!
-d
"
$file
"
]
;
then
while
read
line
;
do
if
[
"
$line
"
!=
""
]
;
then
count
=
$((
$count
+
1
))
fi
done
<
$file
fi
done
echo
$count
HackaholicGirls/script4/input
0 → 100644
View file @
73525a22
Octal,Prince Kumar,193050070,Abbas Ahmad,193050072,Naman Dixit,19305R005
Team 8 bit,Priyansh kimtee,193050009,Mehul jain,193050046,Satyam agarwal,193050032
Underdogs,Aman Jangde,193050084,Shubham Mishra,193050045,Rajesh Mahale,193050063
Underdogs,Rajesh Mahale,193050063,Aman Jangde,193050084,Shubham Mishra,193050045
Códigos,Kartavya Kothari,193050021,Aditya Jain,193050028,Shreyansh Jain,193050040
Impact,AVS Bharadwaj,193050010,Anant Kumar,193050016,Kaushik Ganorkar,193050078
GeekGods,satyam behera,193050062,Thakkar Raghav Hasmukhbhai,193050079,Nitesh Singh,193050001
Ghanta,Gourab Dipta Ghosh,193050037,Srijon Sarkar,193050038,Debtanu Pal,193050043
Infernos(aagLagaDenge),Jay Bansal,193050004,Sri Niwas Paliwal,193050042,Harmeen Kaur,193050020
MissingSemicolon,Soumyadeep Thakur,193050033,Samrat Dutta,193050026,Aakash Banerjee,193050034
Decepticons,Abhishek Sharma,193050054,Paramar Raja Vijay,193050090,Saurabh Kumar Roy,193050047
Debuggers,Karthik R Prakash,193050008,Ravikant Yadav,193050053,Rajat Bhakoria,193050089
3 Musketeers,Amogh Arvind Parab,193050018,Mandar Sadye,193050075,Nitin Devendra Sisodiya,193050097
Hackaholic Girls,Mudra Sahu,193050007,Ankita Singh,19305R002,Muttineni Navya,193050017
Learners,Deepti Mittal,193050025,Swaril Singhal,193050039,Monika Sroha,193050087
Titanium,Nipun Mittal,193050005,Pragyanshu Singh,193050060,Prateek Agarwal,193050006
The Codesmiths,Subhojit Roy Bardhan,193050002,Shivam Dixit,193050012,Parashiv Sihaniya,193050029
Technocrats,Aman Kumar Singh,193050022,Ashish Kumar Goyal,193050058,Yadnyesh Patil,193050067
Dark Horses,Jayaprakash A,193050050,Sairam,193050056,Laksh Sharma,193054001
Sudo Geeks,Deepak Verma,193050080,Raushan Raj,193050073,Pankaj Kumar,193050065
The Plagiarists,Aakrit Anshuman,193050064,Aditya Kumar,193050088,Vikas Verma,193059003
Infinite loop,Bhaveskumar yadav,193050052,ravi shankar kumar,193050066,shailesh kumar,193050092
Terminator,Saurabh warade,193050051,Sanjay kumar,193050068,Krushna patil,193059005
Unknown,Rajershi Gupta,193059002,Suraj Kumar,193050003,Rohit Kumar,193050071
The Show Stealers,Rasesh Tongia,193050015,Deepak Singh,193050074,Dipendra Chouhan,193050094
TheTeamFormerlyKnowsAsHonorificabilitudinitatibus,Sourab Jha,19305r003,Devesh Ratna Singh,193050024,Zahid Wakeel,193050076
Sysads,Shailendra Kirtikar,193059007,Harshwardhan Thorwat,193059006,Pranav Gangadhar Chaudhay,193059004
CodeCrunchers,Anand Bhararia,193050077,Rohit Kumar Singh,193050069,Basant Kumar Bhala,19305R006
Invincibles,K Ashwin Kumar,194050001,Kaartik Bhushan,194050006,Ankit Raj,193050098
Code geass,Aravind kukunuri,193050048,Vanthala john babu,193050095,Kareti Vineeth Sai,193050031
TeamNameNamers(TNN),Ashwani yadav,193050057,Naman Verma,193050082,Nikhil Durgam,193050086
Hodor!!!,Axel James,193050049,Vikram Barandwal,193050081,Nishant Verma,193050083
Code Warriors,Mohd Kashif Khan,193050027,Rishi Raj Singh,193050036,Abhinav Kumar,19305R001
Eureka,Apaar bansal,193050035,Shubham dobhal,193050011,Sandeep panwar,193050019
HackaholicGirls/script4/sample_output
0 → 100644
View file @
73525a22
3 Musketeers,Amogh Arvind Parab,193050018
3 Musketeers,Mandar Sadye,193050075
3 Musketeers,Nitin Devendra Sisodiya,193050097
CodeCrunchers,Anand Bhararia,193050077
CodeCrunchers,Basant Kumar Bhala,19305R006
CodeCrunchers,Rohit Kumar Singh,193050069
Code geass,Aravind kukunuri,193050048
Code geass,Kareti Vineeth Sai,193050031
Code geass,Vanthala john babu,193050095
Code Warriors,Abhinav Kumar,19305R001
Code Warriors,Mohd Kashif Khan,193050027
Code Warriors,Rishi Raj Singh,193050036
Códigos,Aditya Jain,193050028
Códigos,Kartavya Kothari,193050021
Códigos,Shreyansh Jain,193050040
Dark Horses,Jayaprakash A,193050050
Dark Horses,Laksh Sharma,193054001
Dark Horses,Sairam,193050056
Debuggers,Karthik R Prakash,193050008
Debuggers,Rajat Bhakoria,193050089
Debuggers,Ravikant Yadav,193050053
Decepticons,Abhishek Sharma,193050054
Decepticons,Paramar Raja Vijay,193050090
Decepticons,Saurabh Kumar Roy,193050047
Eureka,Apaar bansal,193050035
Eureka,Sandeep panwar,193050019
Eureka,Shubham dobhal,193050011
GeekGods,Nitesh Singh,193050001
GeekGods,satyam behera,193050062
GeekGods,Thakkar Raghav Hasmukhbhai,193050079
Ghanta,Debtanu Pal,193050043
Ghanta,Gourab Dipta Ghosh,193050037
Ghanta,Srijon Sarkar,193050038
Hackaholic Girls,Ankita Singh,19305R002
Hackaholic Girls,Mudra Sahu,193050007
Hackaholic Girls,Muttineni Navya,193050017
Hodor!!!,Axel James,193050049
Hodor!!!,Nishant Verma,193050083
Hodor!!!,Vikram Barandwal,193050081
Impact,Anant Kumar,193050016
Impact,AVS Bharadwaj,193050010
Impact,Kaushik Ganorkar,193050078
Infernos(aagLagaDenge),Harmeen Kaur,193050020
Infernos(aagLagaDenge),Jay Bansal,193050004
Infernos(aagLagaDenge),Sri Niwas Paliwal,193050042
Infinite loop,Bhaveskumar yadav,193050052
Infinite loop,ravi shankar kumar,193050066
Infinite loop,shailesh kumar,193050092
Invincibles,Ankit Raj,193050098
Invincibles,Kaartik Bhushan,194050006
Invincibles,K Ashwin Kumar,194050001
Learners,Deepti Mittal,193050025
Learners,Monika Sroha,193050087
Learners,Swaril Singhal,193050039
MissingSemicolon,Aakash Banerjee,193050034
MissingSemicolon,Samrat Dutta,193050026
MissingSemicolon,Soumyadeep Thakur,193050033
Octal,Abbas Ahmad,193050072
Octal,Naman Dixit,19305R005
Octal,Prince Kumar,193050070
Sudo Geeks,Deepak Verma,193050080
Sudo Geeks,Pankaj Kumar,193050065
Sudo Geeks,Raushan Raj,193050073
Sysads,Harshwardhan Thorwat,193059006
Sysads,Pranav Gangadhar Chaudhay,193059004
Sysads,Shailendra Kirtikar,193059007
Team 8 bit,Mehul jain,193050046
Team 8 bit,Priyansh kimtee,193050009
Team 8 bit,Satyam agarwal,193050032
TeamNameNamers(TNN),Ashwani yadav,193050057
TeamNameNamers(TNN),Naman Verma,193050082
TeamNameNamers(TNN),Nikhil Durgam,193050086
Technocrats,Aman Kumar Singh,193050022
Technocrats,Ashish Kumar Goyal,193050058
Technocrats,Yadnyesh Patil,193050067
Terminator,Krushna patil,193059005
Terminator,Sanjay kumar,193050068
Terminator,Saurabh warade,193050051
The Codesmiths,Parashiv Sihaniya,193050029
The Codesmiths,Shivam Dixit,193050012
The Codesmiths,Subhojit Roy Bardhan,193050002
The Plagiarists,Aakrit Anshuman,193050064
The Plagiarists,Aditya Kumar,193050088
The Plagiarists,Vikas Verma,193059003
The Show Stealers,Deepak Singh,193050074
The Show Stealers,Dipendra Chouhan,193050094
The Show Stealers,Rasesh Tongia,193050015
TheTeamFormerlyKnowsAsHonorificabilitudinitatibus,Devesh Ratna Singh,193050024
TheTeamFormerlyKnowsAsHonorificabilitudinitatibus,Sourab Jha,19305r003
TheTeamFormerlyKnowsAsHonorificabilitudinitatibus,Zahid Wakeel,193050076
Titanium,Nipun Mittal,193050005
Titanium,Pragyanshu Singh,193050060
Titanium,Prateek Agarwal,193050006
Underdogs,Aman Jangde,193050084
Underdogs,Aman Jangde,193050084
Underdogs,Rajesh Mahale,193050063
Underdogs,Rajesh Mahale,193050063
Underdogs,Shubham Mishra,193050045
Underdogs,Shubham Mishra,193050045
Unknown,Rajershi Gupta,193059002
Unknown,Rohit Kumar,193050071
Unknown,Suraj Kumar,193050003
HackaholicGirls/script4/script4.sh
0 → 100644
View file @
73525a22
#!/bin/bash
inpFle
=
$1
touch
temp.txt
while
read
line
do
IFS
=
","
spaceLine
=(
$line
)
teamName
=
${
spaceLine
[0]
}
stud1
=
${
spaceLine
[1]
}
stud1RollNum
=
${
spaceLine
[2]
}
stud2
=
${
spaceLine
[3]
}
stud2RollNum
=
${
spaceLine
[4]
}
stud3
=
${
spaceLine
[5]
}
stud3RollNum
=
${
spaceLine
[6]
}
echo
"
$teamName
,
$stud1
,
$stud1RollNum
"
>>
temp.txt
echo
"
$teamName
,
$stud2
,
$stud2RollNum
"
>>
temp.txt
echo
"
$teamName
,
$stud3
,
$stud3RollNum
"
>>
temp.txt
done
<
$1
cat
temp.txt |
sort
>
output
rm
temp.txt
HackaholicGirls/script5/Script5_output.png
0 → 100644
View file @
73525a22
120 KB
HackaholicGirls/script5/bashrc
0 → 100644
View file @
73525a22
# ~/.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) 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
# 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
#creating alias as a part of outlab assignment
alias fileds='du -h'
#Creating welcome note as a part of outlab assignment
echo "__________ ___ ___ __ .__ .__ .__ "
echo "\______ \ ____ / | \_____ ____ | | _______ | |__ ____ | | |__| ____ "
echo " | | _// __ \ / ~ \__ \ _/ ___\| |/ /\__ \ | | \ / _ \| | | |/ ___\ "
echo " | | \ ___/ \ Y // __ \\ \___| < / __ \| Y ( <_> ) |_| \ \___ "
echo " |______ /\___ > \___|_ /(____ /\___ >__|_ \(____ /___| /\____/|____/__|\___ >"
echo " \/ \/ \/ \/ \/ \/ \/ \/ \/ "
#creating an alias for listing the courses of cse.iitb
alias cseiitb='wget -qO- https://www.cse.iitb.ac.in/page137 | grep -Eoi '\''cs [0-9][0-9][0-9]'\''|uniq '
HackaholicGirls/script6/cussWords
0 → 100644
View file @
73525a22
fuck
bum
bitch
ass
hump
HackaholicGirls/script6/lyricFile
0 → 100644
View file @
73525a22
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 going to have a problem here
Y'all act like you never seen a white person before
Jaws all on the floor like Pam and Tommy just burst in the door
Started whoopin' her ass worse than before, they first get divorced
Throwing her over furniture
It's the return of the "Oh wait, no way, your 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, walking around grabbing his you know what
Flippin' the you know who "yeah, but he's so cute though"
Yea I probably got a couple of screws up in my head loose
But no worse than what's going on in your parent's bedrooms
Sometimes I want to 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 women's clitoris is.
Of course they gonna know what intercourse is, by the time they hit 4th grade,
They got the discovery channel don't they?
We ain't nothing 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 can 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 M-T-V
"Yeah he's cute but I think he's married to Kim, he he"
I should download her audio on mp3
And show the whole world how you gave Eminem V.D.
I'm sick of you little girl and boy groups all you do is annoy me
So I've 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, it 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 giving you, things you joke about with your friends
Inside your living 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 sugar coat it at all
I just get on the mic and spit it, and whether you like to admit it (rip)
I just shit it better than 90 percent of you rappers out there
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 thirty
I'll be the only person in the nursing home flirting.
Pinching nurses asses when I'm jackin' off with Jergens
And I'm jerking, but this whole bag of Viagra isn't working
And every single person is a Slim Shady lurkin' he could be workin' at Burger King
Spitten on your onion rings
Or in the parking lot circling,
Screaming I don't give a fuck with his windows down and system up
So will the real Shady, please stand up
And put one of those fingers on each hand up
And to 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
Haha, I guess there's a Slim Shady in all of us,
Fuck it,
Let's all stand up
HackaholicGirls/script6/script6.sh
0 → 100755
View file @
73525a22
readarray a <
$2
len
=
${#
a
[@]
}
#for c in ${a[@]}; do
# temp="${c^}"
# a[$len]=$temp
# len=$(( $len + 1 ))
# done
while
read
line
;
do
for
word
in
$line
;
do
flag
=
0
for
c
in
${
a
[@]
}
;
do
# if [ "$word" == "$c" ]; then
shopt
-s
nocasematch
case
"
$word
"
in
$c
)
printf
"bleep "
>>
output
flag
=
1
;;
esac
# fi
done
if
[
$flag
-eq
0
]
;
then
printf
"%s "
$word
>>
output
fi
done
echo
""
>>
output
done
<
$1
HackaholicGirls/script7/sample_output
0 → 100644
View file @
73525a22
This diff is collapsed.
Click to expand it.
HackaholicGirls/script7/script7.sh
0 → 100644
View file @
73525a22
#!/bin/bash
touch
output
cat
$1
>
temp.txt
sed
-e
's/[mM][iI][gG][hH][tT][yY]/dumb/g'
temp.txt
>
output
rm
temp.txt
HackaholicGirls/script7/thorBiography
0 → 100644
View file @
73525a22
This diff is collapsed.
Click to expand it.
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