|
Home > Archive > Unix Shell > February 2007 > line return
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| mobidyc 2007-02-15, 1:19 pm |
| Hello,
i search to read a line and to do a line return with some spaces ('\n
') if the line is longer than X characters.
do you have some tools to do that ?
i search around awk but it's not so easy than i thought.
thanks
--
Regards,
Mobidyc
| |
| Bill Marcum 2007-02-15, 1:19 pm |
| On Thu, 15 Feb 2007 17:47:42 +0100, mobidyc
<mobidyc@msn.com> wrote:
>
>
> Hello,
>
> i search to read a line and to do a line return with some spaces ('\n
> ') if the line is longer than X characters.
> do you have some tools to do that ?
>
> i search around awk but it's not so easy than i thought.
>
> thanks
fold
fmt
--
I'm sure that that could be indented more readably, but I'm scared of
the awk parser.
-- Larry Wall in <6849@jpl-devvax.JPL.NASA.GOV>
| |
| mobidyc 2007-02-19, 7:20 am |
| "Bill Marcum" <marcumbill@bellsouth.net> a écrit dans le message de
news:ahjea4-a37.ln1@don.localnet...
> On Thu, 15 Feb 2007 17:47:42 +0100, mobidyc
> <mobidyc@msn.com> wrote:
('\n[vbcol=seagreen]
>
> fold
> fmt
Thanks for these two useful programs.
Regards,
Mobidyc
|
|
|
|
|