#!/bin/csh

foreach year (08)
#ls /home/data/cps-basic/cpsb$year??.Z
ls /home/data/cps-basic/cpsb$year??.Z
zcat /home/data/cps-basic/cpsb$year??.Z | awk 'substr($0,64,1) == 4 || substr($0,64,1) == 8' >/home/data/morg/raw/morg$year 
#zcat /home/data/cps-basic/cpsb$year??.Z | awk 'substr($0,64,1) == 4 || substr($0,64,1) == 8' >/home/data/morg/raw/morg$year 
#compress /home/data/morg/raw/morg$year
end
