Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- types2htmls

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
types2htmls
Synopsis
/infobank/programs/gaz/gazboothill/types2htmls/types2htmls.for
Description
  Program to change links within <equip> sp

     files resulting from ids2html
     that link to meta.html files
     to  links to <equip>.html 
       
AUTHOR
  Clint Steele    4/11/02


    
Reads
          read (90, '(t13,q,a)', end = 99)
     *        InFileLength, InFile(1:InFileLength)
Writes
Opens
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/tmp/types2htmls.'//OldName//'.temp')
Calls
      call system ('/bin/grep /htmlids/ '//
     *    '/infobank/programs/keep/infobank_files.keep | '//
     *    '/bin/grep -v index.html | '//
     *    '/bin/grep -v \/$ '//
     *    ' > /tmp/types2htmls.tem
      call sedit ('bathymetry', 'bath')
      call sedit ('cameras', 'cam')
      call sedit ('geodetic', 'geo')
      call sedit ('gravity', 'grav')
      call sedit ('magnetics', 'mag')
      call sedit ('meters', 'meter')
      call sedit ('navigation', 'nav')
      call sedit ('samples', 'samp')
      call sedit ('seismic', 'seis')
      call system ('/bin/rm /tmp/types2htmls.temp')
      call system ('/bin/grep '//OldName//' /tmp/types2htmls.temp '//
     *    ' > /tmp/types2htmls.'//OldName//'.tem
          call system ('/bin/cat '//InFile(1:InFileLength)//
     *        ' | sed -e s/meta.html/'//NewName//'.html/ > 
     *        '/tmp/types2htmls.workfile.temp;'//
     *        '/bin/mv /tmp/types2htmls.workfile.temp '//
     *        InFile(1:InFileLength))

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/gaz/gazboothill/types2htmls/types2htmls.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:38:22 PDT 2013  (chd)