3 ms·
The other day, I wanted to check if a text file's 100,000th word was being indexed, so I generated a text file with 99,999 lines containing "foo" and one line w
by maximus-decimus 5y ago
The other day, I wanted to check if a text file's 100,000th word was being indexed, so I generated a text file with 99,999 lines containing "foo" and one line with "bar" with this line in bash
perl -e 'print "foo\n" for 1..99999; print "bar\n";' > foobar.txt