kea-classrooms / ITA-BBS-madsen10

ITA-BBS-madsen10 created by GitHub Classroom
0 stars 0 forks source link

Make a script #6

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

Get rid of the sample files

Let's get rid of the sample files - so we can create them again.

Make sure your working directory is the root of the repository where the samples folder is - change directory if you have to. Now delete the samples folder, and everything in it using rm (it needs a few switches to work - but you'll figure it out).

MadsRunge commented 1 year ago

ls 2 cd 3 cd .git 4 cd .github 5 cd cd .github/ 6 cd .github/ 7 .github/ 8 ls 9 cd 10 cd .github/ 11 .. 12 cd .github/ 13 .. 14 /workspaces/ITA-BBS-madsen10/setup-samples.sh 15 chmod +x setup-samples.sh 16 /workspaces/ITA-BBS-madsen10/setup-samples.sh 17 history 18 ls -l 19 /workspaces/ITA-BBS-madsen10/setup-samples.sh 20 mkdir samples 21 mkdir samples/animals 22 mkdir samples/animals/countries 23 mkdir samples/animals/countries/movies 24 ANIMALS=('Apes' 'Elephants' 'Elephant babies' 'Monkies' 'apes') 25 COUNTRIES=('Denmark' 'Sweden' 'USA' 'France' 'Italy' '.apes' 'North Korea') 26 MOVIES=('Batman' 'Sex And The City' 'JFK' 'Poltergeist' 'Germany') 27 cd samples/animals 28 for id in ${ANIMALS[@]}; do echo $id >> $id.txt; done 29 cd countries 30 for id in ${COUNTRIES[@]}; do echo $id >> $id.txt; done 31 cd movies 32 for id in ${MOVIES[@]}; do echo $id >> $id.txt; done 33 history