On Mon, Jul 02, 2001 at 06:17:17AM -0700, Bob Mangold wrote:
> I know I can use the backspace character to overwrite previous characters
> and the such, but can I use it to backup a few lines. Lets say I write:
>
> print "hello\n";
> print "world";
>
> I know that:
>
> print "\b";
> print "a";
>
> will replace the 'd' in 'world' with an 'a', but is there away to
> backspace over both lines. I guess what I really need to do is backspace
> over an '\n'. Is that possible?
What is it you're trying to accomplish with this? The "\b" sequence will
only delete back a character if you print to a terminal, and only if your
terminal is setup to interpret the "\b" in that way. Don't rely on it to do
string processing for you; use Perl for that.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--