USGS InfoBank banner.  USGS, Coastal and Marine Geology, InfoBank banner.
 USGS Coastal and Marine Geology banner.    Search InfoBank.
USGS InfoBank program -- addhead Skip navigational links
    ________   ________   ______________   ________   _________   _______________   ________  
  tab edge  Home  tab edge  Data  tab edge  Activities  tab edge  FACS  tab edge  Atlas  tab edge  Definitions  tab edge  More  tab edge  
   
InfoBank Programs: by Name   by Data Type   General Tools   GIS   Plotting   Web   USGS Disclaimer   InfoBank Programs   Boothill  
   
Expanded description
Topic Description
Name
addhead
Synopsis
/infobank/programs/edit/addhead/addhead.for
Description
  Program to add header information to a file.
    
Input
  list of files to be changed.

    
Output
  script file that needs to be edited by replacing "!"

  or other strings with appropriate info.
  Then execute the script.
    
Author
  Clint Steele


    
Reads
     read (90, '(q,a)', end=99)
*        pathlength, path(1:pathlength)

    
Writes
     write (91, '(a,a)') 
*        '/bin/cat /infobank/programs/html/dictionary2html/',
*        'format_onoff.!_EQUIPMENT_TYPE.txt > /tmp/head.temp'

     write (91, '(a,a,a)')
*        '/bin/cat ',path(1:pathlength),
*        ' >> /tmp/head.temp'

     write (91, '(a,a,/)')
*        '/bin/cp /tmp/head.temp ',
*        path(1:pathlength)

    
Calls
 call openem (1,-1)
    

Skip footer navigational links

InfoBank   Menlo Park Center   Santa Cruz Center   St. Petersburg Center   Woods Hole Center   Coastal and Marine Geology Program  
 
U. S. Department of the Interior   U. S. Geological Survey   Geologic Information   Ask-A-Geologist   USGS privacy statement   Disclaimer  

URL: /infobank/programs/edit/addhead/addhead.doc.html
Maintainer: Clint Steele
Comments: e-mail
Last modified: Wed Nov 20 15:00:57 PST 2002  (wcs)