i cant use that to read only part of the line at a time though (?). I only wish to read the first two variables, then the third, then the fourth etc, not all at once.
hah, oh yes this is a good idea, just make another program to modify the input data. thanks gummibaer! i also realized the command
column -t file.txt
does the same thing (kinda). Thanks again
Thanks for the help! I should have included the data, don't know why i didnt. and actually the integers can have any amount of characters as far as i can tell. Here is a short example:
0 -0.123456e-01 1.123456e-03 -2.123456e+00 3.123456e-01
1 -4.123456e-01 5.123456e-03 -6.123456e+00...
Addendum:
The column of integers is now the problem. I could indeed recreate these files so that i have no negative numbers, but i just realized that the column of integers includes numbers up to 1000. So now the problem is how do i specify format for integers which vary from 1 to 3 characters
I have large files with 5 columns of numbers. First column is an integer and other columns are reals, with one space in between all columns. i want to be able to read the first two numbers on a line, but be able to read the others later without having to backspace. The advance='no' feature is...
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.