Skip to content

Commit 0545ab2

Browse files
Merge pull request #7 from thesecondchude-spec/assignment
assignment for chude
2 parents 01c9145 + 1aba555 commit 0545ab2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

02_activities/assignments/assignment.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ cp raw/*event*.log processed/event_logs/
4444
# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs
4545
rm -f raw/*ipaddr*
4646
rm -f processed/user_logs/*ipaddr*
47-
# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
4847

48+
# 8. Create a file named ./data/inventory.txt that lists all the files in the subfolders of ./data/processed
49+
find processed -type f > inventory.txt
50+
cd ..
4951

5052
###########################################
51-
53+
# to run this script: cd to the directory containing assignment.sh and run: bash assignment.sh
5254
echo "Project setup is complete!"

0 commit comments

Comments
 (0)