• 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: tab delimited data file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tab delimited data file


  • Subject: Re: tab delimited data file
  • From: Martin Orpen <email@hidden>
  • Date: Thu, 26 Jun 2003 09:38:59 +0100

On Wed, 25 Jun 2003 14:48:12 -0500, Rick Norman <email@hidden>
wrote:

> That's great except for the fact that each data file is 1000 records with 35
> fields in each record. In this example would I have to paste the data file
> into the script? The way I had thought of doing it (just not sure how to
> write it) is to take record 1 and store the number being compared in a list
> (which would be "10" in this case) and write record one to a new file and
> then if that number "10" is encountered again it will be ignored, but
> continue with every new unique number throughout the file. Hope that makes
> sense.

Don't know if somebody has already pointed this out, but I think you may be
overlooking a very simple solution:

% uniq -f1 myfile.txt

Or am I missing something?

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Get position of item in list
  • Next by Date: Re: tab delimited data file
  • Previous by thread: Re: tab delimited data file
  • Next by thread: Re: tab delimited data file
  • Index(es):
    • Date
    • Thread