BEGIN { prefix = "ske"; movfile= "mov.mov"; tiffile= ""; zcpath = "f:\\exp\\"; aupath = "f:\\exp\\"; autorec= "yes"; auopt = "-rough 8 -premove 8"; count = 000000000; RS = ";"; FS = ";"; } /./{ gsub( /[\)\n]/, " " ); gsub( /\( */ , "(" ); gsub( / *, */ , "," ); gsub( /o\(/ , "-o" ); gsub( /p\(/ , "-p" ); gsub( /l\(/ , "-l" ); gsub( /m\(/ , "-m" ); gsub( /a\(/ , "-a" ); gsub( / / , " " ); printf("RUN386 %szc ", zcpath); if( prefix != ""){ printf("-p%s ", prefix); } if( autorec == "yes" ){ printf("-otmp %s\n", $0); printf("RUN386 %sautorec %s tmp %s\n", aupath, movfile, auopt); } else { printf("-o%s%04d %s\n", tiffile, count,$0) } count ++; }