#!/bin/csh
/bin/rm -f ../orig/zip/* ../orig/xport/* 
foreach t ( .zip rw1x.zip )
   foreach f ( 98 95 92 89 )
     cd /home/nber/taxsim/public_html/to-taxsim/scf27-32/orig/zip
     wget -nv "https://www.federalreserve.gov/econres/files/scf${f}${t}"
     pwd
     cd ../cport
     7z e -y ../zip/scf${f}${t} 
   end
   foreach f ( 19 16 13 10 07 04 01 )
     cd ../zip
     wget -nv "https://www.federalreserve.gov/econres/files/scf20${f}${t}"
     cd ../cport
     7z e -y ../zip/scf20${f}${t}
   end
end

cd ../cport
ls
mmv '*' '#1.'
exit

