Tagged Questions
4
votes
2answers
89 views
Read and process a string, char by char, yet allow user to simple line edit the input
I want to incrementally read a line of input from the terminal,
and allow the user some basic line editing functionality; INS, DEL, RIGHT, LEFT HOME, END, BACKSPACE
Each time the string is ...
3
votes
3answers
328 views
Fast way to build a test file with every second listed in YYYY-mm-dd HH:MM:SS format
I want to create a large test file with lines containg dates listed by the second, but my method is taking inordinately long... (or at least, that's how it feels :) ... 43 minutes to create only ...
2
votes
3answers
318 views
Is it possible in bash, to start reading a file from an arbitary byte count offset?
I want to locate a date which is somewhere in an 8 GB log (text).
Can I somewhat bypass a full sequential read, and first do binary splits of the file (size), or somehow navigating the filesystem ...
7
votes
2answers
183 views
What governs the limits of shell brace expansion?
In this example I refer to the expansion of a sequence of integers, but perhaps(?) the limits would be relevant to all aspects of brace expansion.. This more general view is also of interest to me.
...
2
votes
1answer
165 views
Is there a search utility which can binary split search a large sorted (sequential) text file?
Yes, I know it sounds odd. Sequential and Binary-splits don't mix.. That is unless the sequence is the byte offset within the file itself...
I've scrambled together a binary split search in bash ...