Extracting scores with shell
There is a file in either the start_dir/first_dir
, start_dir/second_dir
or start_dir/third_dir
directory called soccer_scores.csv
. It has columns Year,Winner,Winner Goals
for outcomes of a soccer league.
cd
into the correct directory and use cat
and grep
to find who was the winner in 1959. You could also just ls
from the top directory if you like!
This exercise is part of the course
Introduction to Bash Scripting
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
