Thread View: comp.sys.sgi.misc
5 messages
5 total messages
Started by John Vanderpool
Fri, 30 Dec 1994 16:19
irix "fold" breaks words in the middle, any relief in sight???
Author: John Vanderpool
Date: Fri, 30 Dec 1994 16:19
Date: Fri, 30 Dec 1994 16:19
19 lines
1576 bytes
1576 bytes
the irix version of the "fold" command breaks words in the middle if
they fall where the break "-width" occurs. hpux has an option called -s
which will:
-s Break the line on the last blank character found before
the specified number of column positions. If none are
found, break the line at the specified line length.
this is VERY useful, any plans on a similar funtion in irix? or i guess
i'll have to go get the GNU fold (does anyone know if it does it? is it
in GNU fileutils?)
thanx and happy new year,
fish
--
Let's drink to the hard working people, let's drink to the lowly of birth
Raise your glass to the good and the evil, let's drink to the salt of the earth
-mj/kr
John R. Vanderpool <fish@daacdev1.stx.com>
Re: irix "fold" breaks words in the middle, any relief in sight???
Author: Dave Olson
Date: Sat, 31 Dec 1994 00:31
Date: Sat, 31 Dec 1994 00:31
20 lines
1799 bytes
1799 bytes
fish@daacdev1.stx.com (John Vanderpool) writes: | the irix version of the "fold" command breaks words in the middle if | they fall where the break "-width" occurs. hpux has an option called -s | which will: | | -s Break the line on the last blank character found before | the specified number of column positions. If none are | found, break the line at the specified line length. | | this is VERY useful, any plans on a similar funtion in irix? or i guess | i'll have to go get the GNU fold (does anyone know if it does it? is it | in GNU fileutils?) No plans to add it that I know of, but it seems to me that this is no different than using "fmt"... -- The most beautiful things in the world are | Dave Olson those from which all excess weight has been | Silicon Graphics removed. -Henry Ford | olson@sgi.com
Re: irix "fold" breaks words in the middle, any relief in sight???
Author: Kevin Luster
Date: Tue, 03 Jan 1995 01:22
Date: Tue, 03 Jan 1995 01:22
20 lines
1569 bytes
1569 bytes
In article <3e28pd$1ju@gazette.engr.sgi.com>, Dave Olson <olson@anchor.engr.sgi.com> wrote: >No plans to add it that I know of, but it seems to me that this is >no different than using "fmt"... I think the difference is that HP fold with the magic option will produce lines which are always less than or equal to your desired width, while fmt does not. fold will break in the middle of a sequence of characters if there is no way to do a proper word break, fmt will leave the string alone and pass a line wider than your desired width. -- Kevin Luster, Project Reality | Silicon Graphics MS-880 Kicking Sega's butt | 2011 N. Shoreline Blvd kluster@goth.engr.sgi.com | Mountain View, Ca. 94043 http://www.ugcs.caltech.edu/~kluster/Visigoth.html
Re: irix "fold" breaks words in the middle, any relief in sight???
Author: John Vanderpool
Date: Thu, 05 Jan 1995 00:22
Date: Thu, 05 Jan 1995 00:22
32 lines
2326 bytes
2326 bytes
olson@anchor.engr.sgi.com (Dave Olson) writes: >fish@daacdev1.stx.com (John Vanderpool) writes: >| the irix version of the "fold" command breaks words in the middle if >| they fall where the break "-width" occurs. hpux has an option called -s >| which will: >| >| -s Break the line on the last blank character found before >| the specified number of column positions. If none are >| found, break the line at the specified line length. >| >| this is VERY useful, any plans on a similar funtion in irix? or i guess >| i'll have to go get the GNU fold (does anyone know if it does it? is it >| in GNU fileutils?) >No plans to add it that I know of, but it seems to me that this is >no different than using "fmt"... well, after a few other replies stating that i seemed to think so too, but there is a MAJOR difference, fmt tries to nicely format ALL of the text into paragraphs. thus, if you pass something into it that you don't want that done to (90% of any text i use) it doesn't work right -- fold just takes lines that are longer than the specified width and folds them over - quite a difference. fish -- Let's drink to the hard working people, let's drink to the lowly of birth Raise your glass to the good and the evil, let's drink to the salt of the earth -mj/kr John R. Vanderpool <fish@daacdev1.stx.com>
Re: irix "fold" breaks words in the middle, any relief in sight???
Author: Dave Olson
Date: Sun, 08 Jan 1995 03:03
Date: Sun, 08 Jan 1995 03:03
19 lines
1773 bytes
1773 bytes
fish@daacdev1.stx.com (John Vanderpool) writes: | well, after a few other replies stating that i seemed to think so too, but | there is a MAJOR difference, fmt tries to nicely format ALL of the text | into paragraphs. Yes, this is a major difference. But most people just reformat the lines that they want changed, if they don't want the whole thing. I frequently do this when replying to mail, for example. I'll submit this as an RFE against fold. It might get done for the next release. Or you could write your own filter, of course, if you want it a bit sooner ;) -- The most beautiful things in the world are | Dave Olson those from which all excess weight has been | Silicon Graphics removed. -Henry Ford | olson@sgi.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads