file_read_backwards icon indicating copy to clipboard operation
file_read_backwards copied to clipboard

Feature request - arbitrary line delimiters

Open hyanwong opened this issue 6 years ago • 4 comments

I'd like to be able to specify my own line delimiter (could be just a single character). I have a 200Mb file with no newlines in it that I'd like to read backwards, splitting on a bracket character. Would this be an easy change to implement?

hyanwong avatar Aug 18 '18 13:08 hyanwong

(NB, currently I'm doing this in Perl using https://metacpan.org/pod/File::ReadBackwards)

hyanwong avatar Aug 18 '18 13:08 hyanwong

Hmm.. currently, it's not super trivial to support this.

Partially, we support a file with different line endings. The decision to support this feature makes this hard to accommodate immediately.

I am keeping an eye open to see if there's an easier way to get this feature in.

RobinNil avatar Aug 21 '18 03:08 RobinNil

OK, thanks for responding. I'll keep on using the perl library for the moment then.

hyanwong avatar Aug 21 '18 11:08 hyanwong

Hi, I request to know if there were any updates on the above requested feature. I am in a similar situation where I'd like to be able to specify my own line delimiter. Has it been implemented? Any leads ?? @RobinNil

gupta-niharika avatar Oct 17 '23 09:10 gupta-niharika