Skip to content
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions assignment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ unzip -q rawdata.zip

###########################################
# Complete assignment here

pwd
# 1. Create a directory named data
mkdir ./data
mkdir data
# 2. Move the ./rawdata directory to ./data/raw
mv ./rawdata data/raw
mv ./rawdata ./data/raw
# 3. List the contents of the ./data/raw directory
ls data/raw
ls ./data/raw
# 4. In ./data/processed, create the following directories: server_logs, user_logs, and event_logs
cd data
mkdir processed
Expand All @@ -51,7 +51,7 @@ rm raw/*ipaddr*
rm processed/user_logs/*ipaddr*
# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
touch inventory.txt
find processed > inventory.txt
find processed -mindepth 2 -type f > inventory.txt
###########################################

echo "Project setup is complete!"