Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #907
| From | Joe Riel <joer@san.rr.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.maple |
| Subject | Re: Read ASCII File with CRLF |
| Date | 2014-06-22 09:15 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <87a994dioz.fsf@san.rr.com> (permalink) |
| References | <OMudnUHvlraNbTjOnZ2dnUVZ_tOdnZ2d@megapath.net> <OtudnQQFs_z5YDjOnZ2dnUVZ_vWdnZ2d@megapath.net> |
"Thomas D. Dean" <tomdean@speakeasy.org> writes:
> On 06/21/14 13:50, Thomas D. Dean wrote:
>> I am trying to read an ASCII file that has CRLF.
>>
>> > wget ftp://ssd.jpl.nasa.gov/pub/eph/planets/ascii/de405/ascp1600.405
>>
>
> Figured it out... need sh, sed, awk
>
>> cat ascp1600.405 | sed 's/D/E/g' | awk -f mkmpl.awk > xx.dat
>
> fd:=fopen("xx.dat",READ,TEXT);
> x:=fscanf(fd,"%d%d");
> numelem:=x[2];
> A:=[seq(fscanf(fd,"%e"),i=1..3*(floor(numelem/3)+1))];
> fclose(fd);
>
> Tom Dean
What's in mkmpl.awk?
--
Joe Riel
Back to comp.soft-sys.math.maple | Previous | Next — Previous in thread | Next in thread | Find similar
Read ASCII File with CRLF "Thomas D. Dean" <tomdean@speakeasy.org> - 2014-06-21 13:50 -0700
Re: Read ASCII File with CRLF "Thomas D. Dean" <tomdean@speakeasy.org> - 2014-06-21 14:47 -0700
Re: Read ASCII File with CRLF Joe Riel <joer@san.rr.com> - 2014-06-22 09:15 -0700
Re: Read ASCII File with CRLF "Thomas D. Dean" <tomdean@speakeasy.org> - 2014-06-22 23:01 -0700
csiph-web