Red Hat Topics - A little bash/perl programming help?

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > September 2007 > A little bash/perl programming help?





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]

Author A little bash/perl programming help?
Ivan Marsh

2007-09-27, 1:15 pm

Okay, I admit it, I'm stumped.

I'm trying to write a script to parse out text files into 80 charter line
lengths with column numbering over each line and I just can't seem to get
the logic straight in my head. The desired output would look (something)
like:

1234567890123456789012345678901234567890
12345678901234567890
All work and no play makes jack a dull boy. All work and no

123456789012345678901234567
play makes jack a dull boy.

Putting each 80 character section on a separate line with the column
numbers over it.

Anyone have anything that does something like this? I was trying to write
it in bash but got more confused the more I worked on it. A PERL example
would work too.

(For the record: No, it's not homework. I'm trying to write a script I
just lost when a very old server died.)

-thx


--
I told you this was going to happen.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com