Skip to content
Open
Changes from 9 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
e976b55
delete ip logs... WARNING UNTESTED!
dtxe Nov 15, 2024
ea20676
initialize README file with company name
dtxe Nov 15, 2024
484d1d9
I have posted the conditions satisfying our equation
ofirsivan Oct 3, 2025
5a9cf62
I have uploaded the conditions for the second variable
ofirsivan Oct 3, 2025
87c26eb
this is my first attempt
ofirsivan Oct 7, 2025
62dd2cc
stashed it
ofirsivan Oct 7, 2025
ea5279f
Merge branch 'assignment-f1' into assignment
ofirsivan Oct 7, 2025
756c8b3
deleted
ofirsivan Oct 7, 2025
56b09da
my third try
ofirsivan Oct 8, 2025
41ee3c7
fourth try
ofirsivan Oct 8, 2025
3e20a74
fifth time
ofirsivan Oct 8, 2025
b082d5d
I am not sure
ofirsivan Oct 8, 2025
2228ac3
maybe this time?
ofirsivan Oct 8, 2025
99a479d
I wish this time it will work
ofirsivan Oct 8, 2025
e36b410
this time it will work
ofirsivan Oct 8, 2025
96f6ea0
please
ofirsivan Oct 8, 2025
f5f6d80
^^
ofirsivan Oct 8, 2025
ec567fb
?
ofirsivan Oct 8, 2025
eb80c16
???
ofirsivan Oct 8, 2025
e494846
><
ofirsivan Oct 8, 2025
063d741
jjj
ofirsivan Oct 8, 2025
0612c38
ofir
ofirsivan Oct 8, 2025
ffec54d
ofir
ofirsivan Oct 8, 2025
39bfed3
ofiroosh
ofirsivan Oct 8, 2025
a7c07f7
***
ofirsivan Oct 8, 2025
e207f57
git
ofirsivan Oct 8, 2025
490c6c4
m
ofirsivan Oct 8, 2025
3fc3d31
y
ofirsivan Oct 8, 2025
28b4e52
9
ofirsivan Oct 8, 2025
26fbb21
2112
ofirsivan Oct 8, 2025
aeaee36
gittt
ofirsivan Oct 8, 2025
b3c6410
this is it
ofirsivan Oct 8, 2025
626e577
nn
ofirsivan Oct 8, 2025
6ed0e6f
this is the day
ofirsivan Oct 8, 2025
e258b42
maybe now?
ofirsivan Oct 8, 2025
7ed9a9d
889
ofirsivan Oct 8, 2025
ad9ee9e
555
ofirsivan Oct 8, 2025
a788eac
mmm
ofirsivan Oct 8, 2025
9e1bfb6
ggg
ofirsivan Oct 8, 2025
d8e4aaa
y
ofirsivan Oct 8, 2025
4072b58
hahaha
ofirsivan Oct 8, 2025
8772af2
ppp
ofirsivan Oct 8, 2025
088fda7
yyy
ofirsivan Oct 8, 2025
e783898
555
ofirsivan Oct 8, 2025
df5a430
999
ofirsivan Oct 8, 2025
681db5f
555
ofirsivan Oct 8, 2025
fb884fa
5555
ofirsivan Oct 8, 2025
bcdcc37
888888
ofirsivan Oct 8, 2025
f9a195e
111
ofirsivan Oct 8, 2025
a4e8ea4
1111
ofirsivan Oct 8, 2025
c571663
444
ofirsivan Oct 8, 2025
b70d563
y
ofirsivan Oct 8, 2025
345b445
DONE!
ofirsivan Oct 9, 2025
200ae08
!
ofirsivan Oct 9, 2025
902a950
!
ofirsivan Oct 9, 2025
208e66c
!
ofirsivan Oct 9, 2025
aaf3613
lll
ofirsivan Oct 9, 2025
fd2f0d6
lll
ofirsivan Oct 9, 2025
72d75aa
lll
ofirsivan Oct 9, 2025
7d10460
ofir
ofirsivan Oct 9, 2025
d0ffb4e
Merge branch 'coworker-changes' of https://github.com/UofT-DSI/shell …
ofirsivan Oct 9, 2025
e345379
done
ofirsivan Oct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions 02_activities/assignments/assignment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,26 @@ unzip -q rawdata.zip
# Complete assignment here

# 1. Create a directory named data

mkdir data
# 2. Move the ./rawdata directory to ./data/raw

mv rawdata data/raw
# 3. List the contents of the ./data/raw directory

ls data/raw
# 4. In ./data/processed, create the following directories: server_logs, user_logs, and event_logs

mkdir server_logs user_logs event_logs ./data/processed
# 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs

cd data/raw
cp -name "*server*.log" data/processed/server_logs
# 6. Repeat the above step for user logs and event logs

cp -name "*server*.log" data/processed/user_logs
cp -name "*server*.log" data/processed/event_logs
# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs

cd data/raw
rm "*ipadde*"
cd data/processed/user_logs
rm "*ipadde*"
# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed

touch ./data/inventory.txt

###########################################

Expand Down