Re: A little bash/perl programming help?



On Thu, 27 Sep 2007 21:47:38 +0000, Robert Newson wrote:

Ivan Marsh wrote:

...
If you don't want a varying length header, then just print 2 lines, as in:

print 1 2 3
print 123456789012345678901234567890123...

Or am I missing something here?

If the file is greater than 80 characters it has to split the lines and
continue counting.

Aha, as in:

9 0 1
123456789012345678901234567890123...

the rest of the line

What happens at 100? An extra row with a one above all subsequent 10s
markers, or just a 1 above the 100 marker?

That would seem to be the case, but I don't know if the old script did
that.

--
I told you this was going to happen.

.



Relevant Pages

  • SED - get all the text between two points
    ... I'm trying to extract ALL the text between two markers in the html code. ... How can I tell SED to treat the characters as text? ...
    (comp.os.linux.misc)
  • Re: APL in XML
    ... characters are encoded in Unicode. ... documents, but depending on the font used, the result may be missing ... various alternatives but all have end markers that are deemed to be ...
    (comp.lang.apl)
  • Re: advanced data stripping
    ... With your letters X, Y, Z, B in B1:E1 ... Using the spaces as "markers", the number of characters to be returned ... > cell A251: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: SED - get all the text between two points
    ... >I'm trying to extract ALL the text between two markers in the html code. ... >How can I tell SED to treat the characters as text? ... Use single quotes rather than double quotes to prevent the shell ...
    (comp.os.linux.misc)
  • Re: SED - get all the text between two points
    ... > I'm trying to extract ALL the text between two markers in the html code. ... > How can I tell SED to treat the characters as text? ... and that's for the shell. ...
    (comp.os.linux.misc)