Ah!

Do you use or have access to a Mac, per chance?

If you do, it should (have not tested myself though) also work on a Mac OS X 
system in a terminal window ... :) :)

Z

-----Original Message-----
From: framers-bounces at lists.frameusers.com 
[mailto:[email protected]] On Behalf Of Craig Ede
Sent: Thursday, May 17, 2012 3:04 PM
To: framers at lists.frameusers.com
Subject: RE: utility to check that all heading names are unique?

Thank you. I miss UNIX.

Craig

-----Original Message-----
From: Syed Zaeem Hosain (Syed.Hosain at aeris.net) 
[mailto:[email protected]]
Sent: Thursday, May 17, 2012 3:53 PM
To: Craig Ede; framers at lists.frameusers.com
Subject: RE: utility to check that all heading names are unique?

Hmmm ... no need to make it too complicated, I suspect. I suspect a variant of 
the following command line (if you are on a Unix system anyway) will probably 
work:

sort < inputfile.txt | uniq -c | grep -v "   1 "

to find any lines that are present _more_ than once.

(There are three spaces before, and one space character after, the digit 1 
above ... to ignore single occurrences.)

In my PC, I wrote my own uniq and grep years ago to emulate the Unix commands 
in a DOS window, and "sort" has always been available in a DOS command prompt 
... even in today's Windows 7 environment .

Z

-----Original Message-----
From: [email protected]
[mailto:framers-bounces at lists.frameusers.com] On Behalf Of Craig Ede
Sent: Thursday, May 17, 2012 11:06 AM
To: framers at lists.frameusers.com
Subject: RE: utility to check that all heading names are unique?

One can pretty easily write a little script (perl, python, etc.) that ticks 
through a text dump of this list and flags you for dupes. If you haven't tried 
to do this sort of thing, it is worth the effort and will spur you on to 
inventing more such tools. That beats the heck out of visually scanning for 
dupes.

Craig


_______________________________________________


You are currently subscribed to framers as Syed.Hosain at aeris.net.

Send list messages to framers at lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscribe at lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/syed.hosain%40aeris.net

Send administrative questions to listadmin at frameusers.com. Visit 
http://www.frameusers.com/ for more resources and info.

Reply via email to