On Thu, 04 May 2006 19:32:00 -0400, Doc Evans wrote:
>On 5/4/2006 4:43:31 PM, Christian Ziemski wrote:
>>
>>to the a bit easier readable:
>>
>>f3=`echo $f2 | sed -r -e 's=//?=\\\\=g'`
>>
>
>Readability is in the eye of the beholder :-)
Absolutely! ;-)
>I don't enough sed to know how
>your version works, but I know how mine does :-)
In case you would like to know:
"sed -r" enables the full regular expressions (Fedora Linux here),
so that the following features work:
You can use another character than "/" as delimiter,
I used "=" to be able to have the "/" in the search string without
escaping.
"//?" searches for a slash and an additional (0 or 1) slash,
(so in fact for one or two slashes).
Christian
|
|