FAQ

Telemachus wrote:
On Sun Feb 15 2009 @ 7:25, Jack Butchie wrote:
I have a txt file of products that I would like to be able to insert a
blank line whenever the name of the product changes, to make it easier to
read. I found this srcipt hunting about but I don't know how to apply it
to the text file.
<snip>
In a nutshell, the script is taking a single filename as an argument,
opening the file and then checking line n for equality with n-1.
Hence it does not comply with the OP's requirement, i.e. a blank line
whenever the *product name* changes.
As a more general rule, I would have to recommend *not* running scripts you
don't understand that you find floating around on the interwebs.
Indeed.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 9 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedFeb 15, '09 at 1:25p
activeFeb 15, '09 at 4:24p
posts9
users3
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase