kea-classrooms / bbs-math92n4

bbs-math92n4 created by GitHub Classroom
0 stars 0 forks source link

Create another script that fixes things #3

Open math92n4 opened 1 year ago

math92n4 commented 1 year ago

Create another script; fix-samples.sh and put it in the root of the repository (next to setup-samples.sh).

Use the script to record the commands you executed in the previous issue to sort the misplaced and misspelled files.

So that you can run the two scripts in sequence.

 ./setup-samples.sh # Creates sample files
 ./fix-samples.sh # bring order to the samples
math92n4 commented 1 year ago

Something like this:

cd /workspaces/bbs-math92n4/samples/movies cat Sex.txt And.txt The.txt City.txt > ./"Sex and the City.txt" rm -r Sex.txt rm -r And.txt rm -r The.txt rm -r City.txt cd /workspaces/bbs-math92n4/samples/animals cat Elephant.txt babies.txt > ./"Elephant babies.txt" rm -r Elephant.txt rm -r babies.txt