Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-10-2004, 09:35 AM   #1
Registered User
Join Date: Dec 2004
Posts: 1
Default extract raws from a file

I have a 9000 rows file and I would like to take off odd rows from this file (I mean, I want to keep one value and delete the next one recursevely). How could I do that with awk or sed? Do you know a better idea to do that?

Thank you very much!
eldevic is offline   Reply With Quote
Old 12-10-2004, 02:13 PM   #2
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666

Howdy and Welcome...

Generally speaking, you need to use LoadVars() object to load the content of that file and parse however way you want whether you want to have even rows or odd rows... Go check out the tutorials section to find the LoadVars() tutorial...

BUT, I am more concerned on the number of the rows you have in the file... I don't know how complex it is composed of, but 9000 sounds quite big number for Flash to handler... Maybe you might want to separate the text file in multiples and load appropriate text file when you need... (awk or sed can not be used in Flash...)
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:29 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.