Is the input file fixed length records? Or are they separeted by some sore of character other than new lines?
Brian Kinzel IT Analyst The Swan Corporation [EMAIL PROTECTED] _____ From: Steven Santillo [mailto:[EMAIL PROTECTED] Sent: Friday, December 07, 2007 2:27 PM To: [email protected] Subject: [EDI-L] awk help We have a process that has been working fine but on this file our awk print command is having trouble. The input file has no new line characters. Our commnad: cat <input> | awk '{printf("%-200s",$0)}' > <output> We expect the input and output to be the same but our output has extra spaces at the end causing our application to fail. If we did this: cat <input> | awk '{printf("%-80s",$0)} > <output> It would work but anything over 80 then our output is not the same as our input. Please don't ask why we do this. Any ideas would be apprieciated. __________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile. <http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ> yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ [Non-text portions of this message have been removed] ... Please use the following Message Identifiers as your subject prefix: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> Job postings are welcome, but for job postings or requests for work: <JOBS> IS REQUIRED in the subject line as a prefix. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/EDI-L/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/EDI-L/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
