many thanks - that did it. Joan
-----Original Message----- From: Leonardo Lagos [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 2:06 PM To: Solaris-Users mailing list Subject: Re: [Solaris-Users] CPU consumption Hola Joan, Try "tr"... (man tr) I haven't used regexp on tr, but I guess it may work... something along the line of: $ tr -d "Z$" < infile > outfile Regards, Leo ----- Original Message ----- From: "Grindell, Joan M." <[EMAIL PROTECTED]> To: "'Solaris-Users mailing list'" <[EMAIL PROTECTED]> Sent: Friday, November 14, 2003 13:14 Subject: RE: [Solaris-Users] CPU consumption I am having a problem with using the 'dd' command on an EDCDIC file. The conversion looks fine except that at the end of each record is a funny 'Z' (once it is converted, this character may have been added by the mainframe or on copying the file to the SUn machine ?). I would like to process this file and drop the last character before running it through the 'dd' command. My question is, what command can i use that will allow me to drop the last byte in a record? many thanks Joan _______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users _______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users _______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users
