BEGIN { y = 1; char x[ 128 ]; } /' / { if (y==1) { x=$1; y=0; } else x=substr($1,2); if ($3!="Directory") printf("settype %s %s \n",x,$3); } END {printf("*quit");}