Commit b3d570e7 authored by PIYUSH BHATORE's avatar PIYUSH BHATORE

150050055

parents
GROUP NUMBER : 35 (Binary)
Members and contributions
Divyansh (150020086) : 100%
Abhay Singh Chauhan (150050034) : 100%
Piyush Bhatore(150050055) : 100%
Honor code for each member:
Divyansh: I pledge on my honour that I have not given or received any unauthorized assistance on this assignment or any previous task.
Abhay: I pledge on my honour that I have not given or received any unauthorized assistance on this assignment or any previous task.
Piyush: I pledge on my honour that I have not given or received any unauthorized assistance on this assignment or any previous task.
Comments:
1. taskF.sh will work from just outside the Kiev file (in folder Ukraine) i.e inside parent folder of ziev
2. taskH.sh will work(run) from inside the folder Virginia
3. taskI.sh will work(run) from the same folder as zip file is in.
We learnt the power bash , how it can be used to manipulate a large number of files and the data in them .We also learnt how bash files canbe used as a powerful tool in linux .We also learnt various commands available in terminal.
Citations:
man page
\ No newline at end of file
Tokyo
/home/piyush/Earth/Asia/Japan
find . -type f -iname "t*" -size +50k -size -100k -perm 400
\ No newline at end of file
GRASS Sceptile
/home/piyush/Earth/Asia/China
grep -iE "^(GRASS|WATER) ([^bm]){6,10}$" $(find -type f -iname shanghai)
\ No newline at end of file
Magikarp
rm -r */
rm A*
rm {1..20}
rm *.jpg
cat * >ultraball.html
\ No newline at end of file
Squirtle
alpha omega
curl --data "username=alpha&password=omega" https://www.cse.iitb.ac.in/~sharat/current/cs251/Assign/Lab03/support/verify.php
\ No newline at end of file
cf3c122f1dabdc0fc4e1c37a25556bc8
f24109a62a0422577119abeb0db4f801
10.5.40.119
10.5.41.67
nc -l 50000 >Slowpoke <./Europe/Netherlands/Amsterdam/Bulbasaur
nc 10.5.40.119 50000 >Bulbasaur <./Asia/Russian\ Federation/Moscow/Slowpoke
\ No newline at end of file
#!/bin/bash
for file in ./Kiev/*;
do
if [[ $(file --mime-type -b $file) == text/html ]];
then
$(mv "$file" "$file".html);
elif [[ $(file --mime-type -b $file) == application/gzip ]];
then
$(mv "$file" "$file".gz);
elif [[ $(file --mime-type -b $file) == image/jpeg ]];
then
$(mv "$file" "$file".jpeg);
else
$(mv "$file" "$file".c);
fi;
done;
ROTOM
html
gzip
jpeg
x-c
\ No newline at end of file
Magikarp
ls -tr -l | awk '{for(i=5;i<6;i++) {printf("%s\t",$i)} print ""}' > aa.txt
\ No newline at end of file
Hawlucha
sed -i 's/\(fighting\|flying\)/255 0 0/g' corruptedPokémon.ppm
sed -i 's/\(Atk\|Sp\.A\|Def\|Sp\.D\)\:1[0-9][0-9]/255 8 153/g' corruptedPokémon.ppm
sed -i -e 's/HP-//g' -e 's/[\/][0-9]*//g' corruptedPokémon.ppm
\ No newline at end of file
#!/bin/bash
words=$( cat dictionary.txt )
for p in $words
do
$( yes | unzip -P $p legendaryPokemon.zip &>/dev/null );
if [[ $? == 0 ]];
then
echo $p;
fi;
done
\ No newline at end of file
Mewtwo
\ No newline at end of file
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