[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

sed - trouble matching end of line



Title: sed - trouble matching end of line

We are attempting to use sed to remove blank lines from a stream with:

sed '/^[        ]*$/d'

where the brackets contain a space and a tab. This works with cygwin, but not on RedHat 8.

Both systems report the sed version as 3.02

I have two questions.

1.) Does anyone know that this has been corrected in a newer version of sed?

2.) Does anyone know of another way to match end of line with sed?

Mark Kunkel
Election Systems & Software
(815) 397 - 8144  phone
(800) 800 - 8362

(815) 397 - 4299  fax


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]