First page Back Continue Last page Overview Graphics
Example 1-2
ls and wild cards
We often have large number of files within one given directory and want to find those who follow a specific pattern. For example in the directory ~/bash_scripting/example1/BHRC we want to find those Nordic waveform files that are recorded by only two stations. This means we want those files which have 006 at the end of file. To find the files, we use the following command,
ls *006
* is a wild card and means whatever file which ends with 006