[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed problem with ^ and \
From: |
Bob Proulx |
Subject: |
Re: sed problem with ^ and \ |
Date: |
Thu, 17 Mar 2005 08:19:18 -0700 |
User-agent: |
Mutt/1.5.6+20040907i |
Bob Proulx wrote:
> address@hidden wrote:
> > ... doesn't recognise ^ to mean "start of line" or $ to mean "end of
> > line". I found a similar issue later with the pattern below (supposed to
> > trim spaces and nulls from the end of lines) not working because it
> > didn't understand the $.
It occurred to me that you may be experiencing a problem with locales.
To see the locale you are currently running use the 'locale' command.
locale
To override all locale settings and force the C (aka POSIX) locale set
LC_ALL.
export LC_ALL=C
Then please try your failing sed case again. If that solves the
problem then the problem would be related to locales.
Bob