First page Back Continue Last page Overview Graphics
Example 4-3
Automation using sort and uniq
Now we would like to improve Example 4-2 by also reporting the total number of stations recorded a given event.
To find the number of recording stations, we first find name of stations and sort them using sort command. Later we pipe the result to uniq command to find the recording stations. By piping the output from uniq to command wc, we find the number of recording stations.
You can find the bash script at example4_3_number_dir_sum.bash in example4 or next slide.