i'm trying to chop the headerfile off of a bunch of images.
the image data is 524288 bytes, with the headers varying in size (usually around 5k).
the simple way to do it would be:
tail -c-524288 filename | cat >newfile
but, it ends up with a file that's about half as large as I want it to be...
sorry to ask such an inane question but i've left my fortran book back at home...
I'd like to
DO i=1,2000
READ(file1) x,y
WRITE(file2) blah,x,blah,y
IF (EOF) THEN
EXIT
END IF
END DO
But I can't figure out how to recognize the end of the file. using IOSTAT shows me 0's all the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.