Skip to content

Commit a788eac

Browse files
committed
mmm
1 parent ad9ee9e commit a788eac

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

02_activities/assignments/assignment.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,11 @@ mkdir data/processed
3838
cd data/processed
3939
mkdir 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
5447
touch ./data/inventory.txt
5548

0 commit comments

Comments
 (0)