@@ -18,6 +18,7 @@ cd newproject
1818
1919mkdir analysis output
2020touch README.md
21+ echo " # Project Name: DSI Consulting Inc." > README.md
2122touch analysis/main.py
2223
2324# download client data
@@ -28,21 +29,28 @@ unzip -q rawdata.zip
2829# Complete assignment here
2930
3031# 1. Create a directory named data
32+ mkdir data
3133
3234# 2. Move the ./rawdata directory to ./data/raw
33-
35+ mkdir ./data/raw/
36+ mv -v ./rawdata/ ./data/raw/
3437# 3. List the contents of the ./data/raw directory
35-
38+ ls ./data/raw
3639# 4. In ./data/processed, create the following directories: server_logs, user_logs, and event_logs
40+ mkdir ./data/processed ./data/processed/server_logs ./data/processed/user_logs ./data/processed/event_logs
3741
3842# 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs
39-
43+ cp -v ./data/raw/rawdata/* ./data/raw/
44+ cp -v ./data/raw/* server* .log ./data/processed/server_logs
4045# 6. Repeat the above step for user logs and event logs
41-
46+ cp ./data/raw/* user* .log ./data/processed/user_logs
47+ cp ./data/raw/* event* .log ./data/processed/event_logs
4248# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs
49+ rm ./data/raw/* ipaddr*
50+ rm ./data/processed/user_logs/* ipaddr*
4351
4452# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
45-
53+ ls -R ./data/processed > ./data/inventory.txt
4654
4755# ##########################################
4856
0 commit comments