X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fbb9d,b57953b3b51bba14,start X-Google-Attributes: gidfbb9d,public X-Google-ArrivalTime: 1995-03-10 10:28:28 PST Path: bga.com!news.sprintlink.net!news.wwa.com!not-for-mail From: sz9njm@sun32.hqs.mid.gmeds.com (Simon Eric T) Newsgroups: rec.arts.ascii Subject: Info: Script to Remove Trailing Blanks Date: 9 Mar 1995 15:55:13 -0600 Organization: gmeds.com Lines: 22 Sender: boba@gagme.wwa.com Approved: boba@wwa.com Message-ID: <3jntg1$lma@gagme.wwa.com> NNTP-Posting-Host: gagme.wwa.com Are you talking about in Unix? % cat file | sed 's/[(space)(tab)]*$//g' Instead of (space), put a space character Instead of (tab), put a tab character This command says, replace a space or a tab (the characters in the [] brackets), any number of occurences (the *), which precede the end-of-line (the $), and replace it with nothing. regards - Eric