I have a file (around 1.6 million lines) which formatted like this:
-0.00697468 0 -1.95966e-49 101325 -3.06381
-0.00697468 0 -1.95966e-49 101325 -3.06381
-0.00697468 0 -1.95966e-49 101325 -3.06381
. . .
After some thousand lines, the format will be changed (no minus sign on the first character), like this:
0.453945 -2.14126e-54 3.40152e-49 101325 214.355
0.453945 -2.14126e-54 3.40152e-49 101325 214.355
0.453945 -2.14126e-54 3.40152e-49 101325 214.355
. . .
So, how to delete the entire line, after the first whitespace on every line? I have tried to search but couldn't get any answer that I want. Thanks! (Note: some lines have different number of character, hence that I cannot simply delete some characters from the end of the line on every line)