[H-GEN] ASCII Characters

Greg Black gjb at gbch.net
Fri Oct 24 07:19:01 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On 2003-10-24, Joe Skilton wrote [re-formatted for legibility]:

>     I have some ASCII characters I need to strip from some
> output, the only problem being I don't know the characters
> (sounds strange I know, but it will become clear).

Try "man ascii" if you want to know their names, although this
is of no use in your task.

> The output itself has nothing except blank space where these
> characters are, but if I cut and paste it into gedit they come
> up in a little box, which contain the numbers 0002 and 0003, I
> know it's ASCII, as it's IRC output (and a guy on a scripting
> channel explained that it is ASCII, but he wasn't sure what)
> but i'm not sure what these characters are, and therefore i'm
> not sure how to use my perl program to strip them ?

Try "man tr" for the obvious tool to use; obviously it's trivial
to do with any of the standard Unix tools such as awk, although
the more modern kitchen sink languages will also be able to
assist.

Why not have a go at solving it and then come back with a report
of what you tried and what you got if you still need help?

> Pre-emptive apology to anyone this annoys (I always seem to piss someone off),

You'd certainly piss me off much less if you found out where the
Enter key is so that you could limit your lines to less than 75
characters.

Cheers, Greg

-- 
Greg Black <gjb at gbch.net> <http://www.gbch.net/gjb.html>
GPG signed mail preferred; further information in headers.

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list