Из "/zuka/buka/[???].ext" выкусить "/[???].ext", чтобы осталось "/zuka/buka" awk || sed -- AY7-UANIC || AY15-RIPE =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message
On Sun, Sep 05, 2004 at 11:31:20AM +0300, Alexander Yeremenko wrote:
Из "/zuka/buka/[???].ext" выкусить "/[???].ext", чтобы осталось "/zuka/buka"
dirname /zuka/buka/[???].ext
awk || sed -- AY7-UANIC || AY15-RIPE
-- NO37-RIPE =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message
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
participants (3)
-
Alexander Yeremenko
-
Oleg V. Nauman
-
Pavel Gulchouck