Well, just because I know that everybody is dying of curiousity about what I've done. I created the shell script:
#!/bin/sh cut -c1-72 $1 | sed -e 's/\ *$//' >$2 I invoke it in a subdirectory with: for i in *;do ../nonum.sh $i $i.ext;done Where I replace ".ext" with something like ".jcl" or ".asm" or whatever is appropriate. Thanks much to all! -- John McKown Senior Systems Programmer UICI Insurance Center Applications & Solutions Team +1.817.255.3225 This message (including any attachments) contains confidential information intended for a specific individual and purpose, and its' content is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this transmission, or taking any action based on it, is strictly prohibited. > -----Original Message----- > From: Post, Mark K [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 11:03 AM > To: [EMAIL PROTECTED] > Subject: Re: Stripping trailing blanks? > > > John, > > You can specify multiple things for sed to do on each record: > sed -e 's/\(.\{0,72\}\).*/\1/' -e 's/ *$//' infile > outfile > > For column-specific stuff, you can also use the cut command: > cut -c1-71 infile | sed -e 's/ *$//' > outfile > > > Mark Post >
