#!/bin/csh

foreach year (05)
#ls /home/data/cps-basic/cpsb$year??.Z
ls /home/data/cps-basic/cpsb$year\12.Z
zcat /home/data/cps-basic/cpsb$year\06.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
