Skip to content

Commit 0f4248f

Browse files
committed
attempt 3
1 parent ad7600d commit 0f4248f

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

02_activities/assignments/assignment.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ unzip -q rawdata.zip
3131
mkdir data
3232

3333
# 2. Move the ./rawdata directory to ./data/raw
34-
mv rawdata data
34+
mv rawdata data/raw
3535

3636
# 3. List the contents of the ./data/raw directory
37-
cd data/rawdata
38-
ls
37+
ls data/raw
3938

4039
# 4. In ./data/processed, create the following directories: server_logs, user_logs, and event_logs
41-
cd data
42-
mkdir processed
43-
cd processed
44-
mkdir server_logs user_logs event_logs
40+
mkdir processed
41+
mkdir processed/server_logs processed/user_logs processed/event_logs
4542

4643
# 5. Copy all server log files (files with "server" in the name AND a .log extension) from ./data/raw to ./data/processed/server_logs
4744
cd data/raw
@@ -55,12 +52,12 @@ cp *event* data/processed/event_logs
5552
# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs
5653
rm *ipaddr*
5754
cd data/processed/user_logs
58-
rm *ipadd*
55+
rm *ipaddr*
5956

6057
# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
6158
cd data
6259
touch inventory.txt
63-
cd data/processed
60+
ls processed > invtentory.txt
6461
ls
6562

6663
###########################################

0 commit comments

Comments
 (0)