Skip to content
Merged
Changes from all commits
Commits
Show all changes
47 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
7842b34
Recent Changes
dtxe Apr 10, 2025
5dbfc79
Question 2 updated
dtxe Apr 11, 2025
65d2610
second attempt to answer 2
dtxe Apr 11, 2025
0b0b061
attempt No. 3
dtxe Apr 11, 2025
fe67f29
attempt number 4
dtxe Apr 11, 2025
5bc0852
attempt no. 5?
dtxe Apr 11, 2025
cddae8c
attempt 6
dtxe Apr 11, 2025
87ab976
attempt like 8
dtxe Apr 11, 2025
9415b3d
attempt 9
dtxe Apr 11, 2025
073c31a
10th attempt
dtxe Apr 11, 2025
98ba8ab
attempt 11
dtxe Apr 11, 2025
0d40d9b
12 attempts!
dtxe Apr 11, 2025
c8d549a
13th attempt
dtxe Apr 11, 2025
09b7e08
13th attempt here
dtxe Apr 11, 2025
3054943
14th attempt
dtxe Apr 11, 2025
d7608d3
created sub folder
dtxe Apr 11, 2025
6a66d12
tried new method
dtxe Apr 11, 2025
2ede1af
try again
dtxe Apr 11, 2025
15d69f8
Trying third part
dtxe Apr 11, 2025
d1c1cca
part 4 attempt
dtxe Apr 11, 2025
d57b0a3
let's try again
dtxe Apr 11, 2025
ac7db5a
part 5 i think
dtxe Apr 11, 2025
c4fc953
part 5 new attempt
dtxe Apr 11, 2025
10e4697
attempting copy file
dtxe Apr 11, 2025
5d54417
new attempt
dtxe Apr 11, 2025
85b49db
another one
dtxe Apr 11, 2025
ba0def3
another
dtxe Apr 11, 2025
afbf279
a
dtxe Apr 11, 2025
c7c647a
trying
dtxe Apr 11, 2025
b982c5a
attempt
dtxe Apr 11, 2025
581ca4f
updated code
dtxe Apr 11, 2025
98c4c7c
Dmytro update
dtxe Apr 12, 2025
031ec2f
second try
dtxe Apr 12, 2025
3908504
trying
dtxe Apr 12, 2025
fd45aff
new
dtxe Apr 12, 2025
61d769d
saturday
dtxe Apr 12, 2025
4b4a9af
saturday 2
dtxe Apr 12, 2025
e603cbb
sunday
dtxe Apr 13, 2025
4a29a3f
sunday 2
dtxe Apr 13, 2025
c693048
sunday 3
dtxe Apr 13, 2025
b694e25
sunday 3
dtxe Apr 13, 2025
46dd1c0
sunday 4
dtxe Apr 13, 2025
85855a1
sunday 5
dtxe Apr 13, 2025
15748b8
sunday 6
dtxe Apr 13, 2025
431521e
Merge branch 'coworker-changes' of https://github.com/UofT-DSI/shell …
dtxe Apr 13, 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
24 changes: 19 additions & 5 deletions 02_activities/assignments/assignment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set -x

mkdir analysis output
touch README.md
echo "# Project Name: DSI Consulting Inc." > README.md
touch analysis/main.py

# download client data
Expand All @@ -21,22 +22,35 @@ 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 -p data/processed/server_logs
mkdir -p data/processed/user_logs
mkdir -p data/processed/event_logs
# 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs
cp data/raw/*server*.log data/processed/server_logs

# 6. Repeat the above step for user logs and event logs


# 6. Repeat the above step for user logs and event logs
cp data/raw/*user*.log data/processed/user_logs
cp data/raw/*event*.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
rm data/raw/*ipaddr*
rm data/processed/user_logs/*ipaddr*
=======
rf -rf ./data

# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed

touch data/inventory.txt
find ./data/processed -type f > ./data/inventory.txt

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

echo "Project setup is complete!"