File tree Expand file tree Collapse file tree
02_activities/assignments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,18 +38,11 @@ mkdir data/processed
3838cd data/processed
3939mkdir server_logs user_logs event_logs
4040# 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs
41- # Source and destination directories
42- SOURCE_DIR=" data/raw"
43- DEST_DIR=" data/processed/server_logs"
44- # Copy files
45- cp " $SOURCE_DIR " /* server* .log " $DEST_DIR "
41+ cp data/raw/* server* .log data/processed/server_logs
4642# 6. Repeat the above step for user logs and event logs
4743
4844# 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- cd data/raw
50- rm " *ipadde*"
51- cd data/processed/user_logs
52- rm " *ipadde*"
45+
5346# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
5447touch ./data/inventory.txt
5548
You can’t perform that action at this time.
0 commit comments