• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best practices for creating and comparing lists of text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practices for creating and comparing lists of text?


  • Subject: Re: Best practices for creating and comparing lists of text?
  • From: Martin Orpen <email@hidden>
  • Date: Sun, 18 Dec 2005 00:09:49 +0000
  • Thread-topic: Best practices for creating and comparing lists of text?

on 17/12/05 13:22, has at email@hidden wrote:

> For example, here's a simple solution in Python - no speed demon itself
[snip]

That's true :-)

Why do we need to bother with all these complicated solutions.

How about a couple of awk one-liners that will do the job very quickly:

     awk '$1 !~ /#/ { FS="="; print $1 }' /path/to/file

-->
Modulename1
Modulename2
Modulename3
Modulename4


And

    awk '$1 !~ /#/ { FS="="; print $NF }' /path/to/file

-->
Modulename1
Libname2
Modulename3
Libname4


Regards

--
Martin Orpen


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Best practices for creating and comparing lists of text?
      • From: Emmanuel <email@hidden>
References: 
 >Re: Best practices for creating and comparing lists of text? (From: has <email@hidden>)

  • Prev by Date: Re: Copy icon
  • Next by Date: Re: Best practices for creating and comparing lists of text?
  • Previous by thread: Re: Best practices for creating and comparing lists of text?
  • Next by thread: Re: Best practices for creating and comparing lists of text?
  • Index(es):
    • Date
    • Thread