Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- startend

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
startend
Synopsis
/infobank/programs/dbase/linecheck/startend.for
Description
  Program to combine Start and End records into one record.


       
Reads
          read (90, '(q,a)', end = 99) 
     *         PathLength, PathName(1:PathLength)
Writes
          write (Pathname, '(1024x)')
          write (91, '(a,a,a,a,a)')
     *         'grep " START" ', PathName(1:PathLength),
     *         ' | sort | head -1 | awk ',
     *         '''{printf("%sON,    SYSTEM\\n",'//
     *         'substr($0,1,109))}'' >
     *         PathName(1:PathLength)//'.start'
          write (91, '(a,a,a,a,a)')
     *         'grep " END" ', PathName(1:PathLength),
     *         ' | sort | tail -1 | awk ',
     *         '''{printf("%sOFF,   SYSTEM",'//
     *         'substr($0,1,109))}''>
     *         PathName(1:PathLength)//'.end'
          write (91, '(a,a,a,a,a)')
     *         'cat ', PathName(1:PathLength)//'.start ',
     *                 PathName(1:PathLength),
     *           ' '//PathName(1:PathLength)//'.end >
     *                PathName(1:PathLength)//'.startend'
          write (92, '(a,a)')
     *          '/bin/rm ',
     *          PathName(1:PathLength)//'.start'
          write (92, '(a,a)')
     *          '/bin/rm ',
     *          PathName(1:PathLength)//'.end'
Opens
Calls
      call openem (1, -2)

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/dbase/linecheck/startend.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:37:52 PDT 2013  (chd)