Skip to content

Commit 6222fd2

Browse files
authored
Fix file copy commands in assignment.sh
Updated file copy commands to use 'cp' instead of 'scp' and adjusted paths for user and event logs.
1 parent b05c89e commit 6222fd2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

02_activities/assignments/assignment.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ ls ./data/raw
3737
# 4. In ./data/processed, create the following directories: server_logs, user_logs, and event_logs
3838
mkdir -p ./data/processed/{server_logs,user_logs,event_logs}
3939
# 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs
40-
scp ./data/raw/*server*.log ./data/processed/server_logs/
40+
cp ./data/raw/rawdata/*server*.log ./data/raw/
41+
cp ./data/raw/*server*.log ./data/processed/server_logs/
4142
# 6. Repeat the above step for user logs and event logs
42-
scp ./data/raw/rawdata/*user*.log ./data/processed/user_logs/
43-
scp ./data/raw/rawdata/*event*.log ./data/processed/event_logs/
43+
cp ./data/raw/rawdata/*user*.log ./data/raw/
44+
cp ./data/raw/rawdata/*event*.log ./data/raw/
45+
cp ./data/raw/rawdata/*user*.log ./data/processed/user_logs/
46+
cp ./data/raw/rawdata/*event*.log ./data/processed/event_logs/
4447
# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs
4548
rm -r ./data/raw/*ipaddr*
4649
rm -r ./data/processed/user_logs/*ipaddr*

0 commit comments

Comments
 (0)