5 Sep
2004
5 Sep
'04
9:41 a.m.
Hi! On Sun, Sep 05, 2004 at 11:31:20AM +0300, Alexander Yeremenko writes: AY> Из "/zuka/buka/[???].ext" выкусить "/[???].ext", чтобы осталось AY> "/zuka/buka" AY> awk || sed gul@happy;~>echo /zuka/buka/qwe.ext | sed 's@/[^/]*$@@' /zuka/buka А sh не подойдет? ;) gul@happy;~>a=/zuka/buka/qwe.ext gul@happy;~>echo ${a%/*} /zuka/buka Ну или просто gul@happy;~>dirname /zuka/buka/qwe.ext /zuka/buka -- Lucky carrier, Паша. =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message