Hmmmm, Looking at all of these "easy to remember" ways to strip trailing blanks reminds me why I like VM/CMS and PIPES. So instead of one of the incredibly convoluted and "unfriendly" commands like this:
ncftpget -W "$GX" -d $W/get.$$ -a -c -u $U -p $P $H $F\($mbr\) | (eval $PRE) >$W/$mbr I can execute a simple command like: PIPE < MY FILE A | STRIP | > MY NEWFILE A I've never been a big fan of the "slash-dot" language. :) Michael Coffin, VM Systems Programmer Internal Revenue Service - Room 6527 1111 Constitution Avenue, N.W. Washington, D.C. 20224 Voice: (202) 927-4188 FAX: (202) 622-3123 [EMAIL PROTECTED] -----Original Message----- From: Lucius, Leland [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 11:10 AM To: [EMAIL PROTECTED] Subject: Re: Stripping trailing blanks? > I'm not sure it will work. One gotcha: > > # PRE="cut -b 1-72 | sed -e s/\ \*\$//" > > If this were't remmed out, you probably have had a non-functioning > script. > Hmmm, did you actually try the script? Did you look further down or did you just stop right at that line and assume you knew there was a problem? I believe you'll find that the "eval" in this line resolves this issue: ncftpget -W "$GX" -d $W/get.$$ -a -c -u $U -p $P $H $F\($mbr\) | (eval $PRE) >$W/$mbr Thanks for the input. Leland
