VMS Help  —  EXTRACT  examples
   !Display the last 10 lines of Login.Com on the terminal
   $ EXTRACT/TAIL=10 Login.Com /IDENTIFY

   !Look at the first few lines of all Fortran source files
   $ EXTRACT/HEAD=5 *.For

   !Copy Test.Txt to Test.Dat, converting text into upper case
   !  and removing excess blanks.
   $ EXTRACT/EDIT=(UPCASE,COMPRESS) Test.Txt/OUTPUT=Test.Dat

   !Extract all but the first 10 and last 10 records of Test.Dat
   $ EXTRACT Test.Dat/RECORDS=(START=11,END=-11) /OUTPUT=Test.Mid

   !Get specific columns out of several files
   $ EXTRACT/COLUMNS=(1:10,18:19,25,41:*) Test.*,[...]*.Tmp
Close Help