Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from rec.arts.ascii, 9 Mar 1995.
Info: Script to Remove Trailing Blanks

Info: Script to Remove Trailing Blanks

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

Original message headers
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: sz9...@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: bob...@gagme.wwa.com
Approved: bob...@wwa.com
Message-ID: <3jntg1$lm...@gagme.wwa.com>
NNTP-Posting-Host: gagme.wwa.com
About this message. This message was posted publicly to the newsgroup rec.arts.ascii in 1995 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post