sed: Jak nahradit __NECO__ za /cesta/neco ??

Libor Chocholaty chocholaty na gncz.cz
Pondělí Únor 11 12:22:11 CET 2002


Michal Kubecek wrote:

> On Mon, Feb 11, 2002 at 12:08:16PM +0100, Libor Chocholaty wrote:
> >
> > Uz jsem si chtel odpovedet sam (ozval se kolega), ale fakt jsem to v manualu
> > nenasel. Nasel jsem priklad s %, ale to nefunguje. Dvojtecka funguje skvele.
>
> Tak jsem se podíval a ono to v manuálové stránce opravdu není. Většina
> GNU projektů bohužel manuálové stránky ignoruje a udržuje jen info.
> Omlouvám se.
>

Dival jsem se do manualove stranky na Solarisu a tam to je. Je to, ale hodne
hluboko schovany:
     ____________________________________________________________
                  Substitute   the   replacement   string    for
                  instances  of  the  regular  expression in the
                  pattern  space.   Any  character  other   than
                  backslash  or newline can be used instead of a
                  slash to delimit the RE and  the  replacement.
                  Within the RE and the replacement, the RE del-
                  imiter itself can be used as a literal charac-
                  ter if it is preceded by a backslash.
     ____________________________________________________________

Bohuzel jsem si zvolil spatny znak... :-(

Jeste jednou diky za postouchnuti,
Libor




Další informace o konferenci Linux