Jak v sh prevest relativni cestu na absolutni?
Matus UHLAR - fantomas
uhlar na fantomas.sk
Pátek Duben 8 11:33:50 CEST 2005
Petr Klima <klima na jihomilk.cz> wrote:
> Potreboval bych zjistit
>
> jestli /xxx/yyy/zzz a /xxx/../xxx/yyy/../yyy/zzz jsou stejne soubory
> (teda spis cesty ...)
>
> ! nepotrebuji porovnat cisla i-node
hmm, preco?
> potrebuji to prevest na absolutni cestu a porovnat jako stringy a
> pripadne dal pouzit ...
realpath (3) - return the canonicalized absolute pathname
--
Matus UHLAR - fantomas, uhlar na fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
99 percent of lawyers give the rest a bad name.
Další informace o konferenci Linux