# Create an index of plants from Tucson Mountains plant list found at: # http://eebweb.arizona.edu/herb/TUCSONS/tucsons.html # Example input: #

Acanthaceae Acanthus Family

#

*Justicia californica (Benth.) D. Gibson. [Beloperone # californica Benth.]. Chuparosa.
# Local subshrub; common along north slope of Safford Peak; 790 & 885 # m (2600 & 2900 feet); flowers red & orange, March & April (November). #

# Example output: # Janusia gracilis Gray. Desert vine. Widespread woody vine f=Malpighiaceae Malpighia # Justicia californica f=Acanthaceae Acanthus # Kallstroemia californica (Wats.) Vail. Little summer poppy, f=Zygophyllaceae Caltrop # Example invocation: # awk -f tucsonsplantsindex.awk tucsons*.html | sort > tucsonsplantsindex.txt # Courtesy of: jendon # Handy awk intro: http://www-106.ibm.com/developerworks/library/l-awk1.html BEGIN {FS=">"} /

.*Family<\/b>.*<\/p>/ { family = $3 sub(".*Family<\/b>/ { family = $2 sub(".*<\/i><\/b>/ { plant = $4 sub("