First page Back Continue Last page Overview Graphics
Example 4-4
Automation using for and while
We would like to store our INSN (Iran National Seismic Center, iiees.ac.ir) broadband waveform data in a tree like directory structure for the stations given in file insn.stn in directory example4. The tree structure is station_name-year-month. Bash script insn_tree.bash do the task. In this script we use while form of do loop in addition of the usual for command.
Command seq is used in the script to produce a sequence of number between 2004 and 2013.