Skip to content

Commit 042dd59

Browse files
authored
Update assignment.sh
1 parent 3442b32 commit 042dd59

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

02_activities/assignments/assignment.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ cp ./data/raw/*server*.log ./data/processed/server_logs
4545
cp ./data/raw/*user*.log ./data/processed/user_logs
4646
cp ./data/raw/*event*.log ./data/processed/event_logs
4747
# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs
48-
rm user_ipaddr*.log
49-
rm ipaddr*.txt
50-
cd data/processed/user_logs
51-
rm user_ipaddr*.log
48+
rm ./data/raw/*ipaddr* ./data/processed/user_logs/*ipaddr*
5249
# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
5350
touch data/inventory.txt
5451
echo "data/processed/server_logs data/processed/user_logs data/processed/event_logs" > ./data/inventory.txt

0 commit comments

Comments
 (0)