
Re ALL Нутром чую, что есть штатное средство, позволяющее длинную строку побить на несколько меньшей длины. Oneline-ром на перле можно, но тогда уж легче всю обертку на нем переписать, чего делать не хочется. P.S. [raven@hostname - 18:24:08 Втр Авг 23 ~] $ cat /etc/issue Red Hat Linux release 9 (Shrike) Kernel \r on an \m -- VP992-RIPE | The girl opened her mouth, I opened my veins, | The girl opened her heart, I opened a door to another world... | (c) Tiamat '92, Clouds, "Undressed". =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message

On Tue, Aug 23, 2005 at 05:31:11PM +0200, Michael Petuschak wrote:
Я сказал не "обрезать до некоторой длины", а "поделить на несколько" :) -- VP992-RIPE | The girl opened her mouth, I opened my veins, | The girl opened her heart, I opened a door to another world... | (c) Tiamat '92, Clouds, "Undressed". =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message

On Tue, Aug 23, 2005 at 06:05:15PM +0200, Michael Petuschak wrote:
Работает. Но не так. -- VP992-RIPE | The girl opened her mouth, I opened my veins, | The girl opened her heart, I opened a door to another world... | (c) Tiamat '92, Clouds, "Undressed". =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message

On Tue, Aug 23, 2005 at 06:27:14PM +0300, Vladimir A. Podgorny wrote:
-- Igor "CacoDem0n" Grabin, http://violent.death.kiev.ua/ =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message

Hello, Vladimir A. Podgorny!
не знаю как в RHL, но в FBSD есть fmt(1), оно как раз тем и занимается: 08:34:26 laa@kotik $ echo 'kjdfg kdfsjgkdfjkfjgkdfsj gkfdjgksdfj gksj' |fmt 10 15 kjdfg kdfsjgkdfjkfjgkdfsj gkfdjgksdfj gksj 08:34:31 laa@kotik $ -- Laa =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message

According to Vladimir A. Podgorny: Hi!
Тебе нужно "не более чем"? Или тебе нужно "строго такой-то -- неважно куда пришлось"? Второй вариант -- сразу не скажу. Если первый вариант: vim <имя файла> set tw=<длинна строки> v (отметил все, что нужно отформатировать визуальным блоком) gq
-- Taras Heychenko =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message

According to Taras Heychenko: Hi!
Сорри, не сообразил, что многоразовая работа, которая должна выполнятся скриптом. На вот эти команды gq vim вызывает какую-то внешнюю приблуду (во фре fmt). Посмотри, что вызывается в линуксе.
-- Taras Heychenko =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message

On Fri, Aug 26, 2005 at 11:37:37AM +0300, Taras Heychenko wrote:
А чего бы под линухом fmt не водиться?
$ uname
Linux
$ fmt --help
Usage: fmt [-DIGITS] [OPTION]... [FILE]...
Reformat each paragraph in the FILE(s), writing to standard output.
If no FILE or if FILE is -', read standard input.
Mandatory arguments to long options are mandatory for short options too.
-c, --crown-margin preserve indentation of first two lines
-p, --prefix=STRING combine only lines having STRING as prefix
-s, --split-only split long lines, but do not refill
-t, --tagged-paragraph indentation of first line different from second
-u, --uniform-spacing one space between words, two after sentences
-w, --width=WIDTH maximum line width (default of 75 columns)
--help display this help and exit
--version output version information and exit
With no FILE, or when FILE is -, read standard input.
Report bugs to

On Fri, Aug 26, 2005 at 11:49:05AM +0300, Alexey Balabushevich wrote:
Господа, спасибо всем за напоминание, fmt подошел на 120%, сорри, что не отмаяковал сразу - последние дни в разъездах. -- VP992-RIPE =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message
participants (6)
-
Alexey Balabushevich
-
Igor Grabin
-
Michael Petuschak
-
Oleksandr Listopad
-
Taras Heychenko
-
Vladimir A. Podgorny