[CLUE-Tech] RE question

Jeffery C. Cann jccann at home.com
Wed Jan 31 17:32:10 MST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To check for whitespace characters, pass your file through cat:

$ cat -vet file.txt

Jeff

On Monday 29 January 2001 22:43, Kevin Cullis wrote:
> What I found out is that I was doing REs correctly, but that the display
> showed the tab character just like it is in a RE (as an \t).
>
> Kevin
>
> Kevin Cullis wrote:
> > Jeff or anyone,
> >
> > I'm having trouble with REs in sed.  I'd like to substitute 5 spaces
> > with a tab and I'm having trouble with the RE.  This is what I've tried
> > with the documentation I've read so far:
> >
> > sed 's/   */\t/g' AMBASS.2
> >
> > This is the result:
> >
> > t1.tAn ambassador is a high
> >
> > Where am I going wrong?  I understand that the \t is for horizontal
> > tabs, but I've tried most everything to get it to work, but it ain't
> > happin'.
> >
> > Jeff, I'm curently typing up RE examples which you may want to use in
> > your KISS session (which I've realized I can't make next month.  If you
> > want the text file, let me know and we can pass it around for others to
> > add to the file.
> >
> > Kevin
>
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech

- -- 
jccann [at] home [dot] com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjp4ro4ACgkQw3/GBQk72kBCIACfUar6Ggu6DS+t0w2btdYU1Zzb
vdAAnR7hcr2QMFXobQxDNFqPCX85tdq5
=hnVF
-----END PGP SIGNATURE-----



More information about the clue-tech mailing list