comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Read ASCII File with tab seperator
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Read ASCII File with tab seperator [message #75387 is a reply to message #75386] Wed, 02 March 2011 10:12 Go to previous messageGo to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
Hi,

after firmly kicking the person responsible for this abomination ;)
you can try this little sed command on the data to generate non-broken files:
(all needs to go into one line)

sed <asdf.tab -e 's/\t\t/\t0\t/g' -e 's/\t\t/\t0\t/g' -e 's/\t\t/\t0\t/g' -e 's/\t$/\t0/g'

asdf.tab:
1 2 3 4
2 3
3 5 5

result:
1 2 3 4
2 0 0 3
3 5 5 0


chl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Anonymous Math Functions in IDL like Matlab
Next Topic: Re: IDL Astron Library now uses Coyote Graphics

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:53:29 PDT 2025

Total time taken to generate the page: 0.47839 seconds