Re: Best practices for creating and comparing lists of text?
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