On Wed, 6 Feb 2002, Booher Timothy B 1stLt AFRL/MNAC wrote:

> Hello. I am trying to run a simple command to remove all the leading spaces
> from a file and it just isn't working. No errors, just no results - still a
> lot of leading spaces on each line.
>
> %perl -pi.bak -e 's/^\s+//' bomb1.txt

Not sure what the problem is.  Here's what happened when I just ran it:

bmccoy:~$ cat bomb1.txt
    hello
               hello
  hello
bmccoy:~$ perl -pi.bak -e 's/^\s+//' bomb1.txt
bmccoy:~$ cat bomb1.txt
hello
hello
hello

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
The best prophet of the future is the past.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to