Skip to main content
Made English more idiomatic; added tag
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

read Read and filter a text file without importing

I have a large text file of a million sections. eachEach section containingcontains A lines of header and B lines of numeric data. I want to read the first and last line of B from each section. (to have a list of 2 x million lines at the end). "Import"Import doesn't work since my file is too big to be read oninto memory. Is there a command like scan and filter for this?

cheers,

read and filter without importing

I have a large text file of million sections. each section containing A lines of header and B lines of numeric data. I want to read first and last line of B from each section. (to have a list of 2 x million lines at the end). "Import" doesn't work since file is too big to be read on memory. Is there a command like scan and filter for this?

cheers,

Read and filter a text file without importing

I have a large text file of a million sections. Each section contains A lines of header and B lines of numeric data. I want to read the first and last line of B from each section (to have a list of 2 x million lines at the end). Import doesn't work since my file is too big to be read into memory. Is there a command like scan and filter for this?

Source Link

read and filter without importing

I have a large text file of million sections. each section containing A lines of header and B lines of numeric data. I want to read first and last line of B from each section. (to have a list of 2 x million lines at the end). "Import" doesn't work since file is too big to be read on memory. Is there a command like scan and filter for this?

cheers,