in reply to Re: Re (tilly) 3: UnEscaping text...
in thread UnEscaping text...

FYI a literal representation is "exact, unchanged". What you are describing in your text file is not a literal representation. Now the following script may do what you want:
#! /usr/bin/perl -w while (<>) { s/\\(.)/$1/g; print; }
If that makes little sense to you then I highly recommend picking up the Llama book, Learning Perl. (One of whose authors is merlyn.)

Replies are listed 'Best First'.
Re: Re (tilly) 5: UnEscaping text...
by Rabotnik (Initiate) on Aug 14, 2001 at 15:42 UTC
    Thanx! That was exactly what I was looking for. Thanx to all! Just 1 more question (if u have the time) what's the putpose of '.' in 's/\\(.)/$1/g;'

      The dot matches any character (apart from newline) in a regex. Read up on perlre to get an introduction to regexes. Or read japhy's excellent book - which is to be published next year by Manning.

      -- Hofmator