Skip to content

Commit 14b65ca

Browse files
authored
Merge branch 'main' into assignment
2 parents f54d100 + e1be28f commit 14b65ca

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

02_activities/assignments/assignment.sh

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ cd newproject
1818

1919
mkdir analysis output
2020
touch README.md
21-
echo "# Project Name: DSI Consulting Inc." > README.md
2221
touch analysis/main.py
2322

2423
# download client data
@@ -29,33 +28,21 @@ unzip -q rawdata.zip
2928
# Complete assignment here
3029

3130
# 1. Create a directory named data
32-
mkdir data
31+
3332
# 2. Move the ./rawdata directory to ./data/raw
34-
mv rawdata data/raw
33+
3534
# 3. List the contents of the ./data/raw directory
3635
ls data/raw
37-
3836
# 4. In ./data/processed, create the following directories: server_logs, user_logs, and event_logs
39-
cd newproject
40-
cd data
41-
mkdir processed
42-
mkdir processed/server_logs processed/user_logs processed/event_logs
43-
cd ..
37+
4438
# 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs
45-
cp data/raw/*server*.log data/processed/server_logs
39+
4640
# 6. Repeat the above step for user logs and event logs
47-
cp data/raw/*user*.log data/processed/user_logs
48-
cp data/raw/*event*.log data/processed/event_logs
41+
4942
# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs
50-
rm data/processed/user_logs/*ipaddr*
51-
rm data/raw/*ipaddr*
52-
# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
53-
touch data/inventory.txt
54-
find data/processed -type f >> data/inventory.txt
5543

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

57-
#creating new line to save changes - ignore
58-
#typing to create changes
5946

6047
###########################################
6148

0 commit comments

Comments
 (0)