New answers tagged search
0
votes
Looking to improve searches across large ( 7-10 GB files )
If your data is as simple and consistent as the sample in your question, you can get away with a short awk command to pull out your intended block (say,for pattern2):
awk '/^dn/{f=(/pattern2/)} f' ...
0
votes
Looking to improve searches across large ( 7-10 GB files )
Your file is so small it fits in memory.
In that case I will suggest you write a small tool that does your search and parallelize it: https://www.gnu.org/software/parallel/parallel_examples.html#...
Top 50 recent answers are included
Related Tags
search × 576grep × 151
files × 82
find × 63
replace × 56
text-processing × 55
linux × 50
regular-expression × 46
sed × 45
string × 44
command-line × 40
awk × 38
bash × 37
vim × 30
file-search × 25
shell-script × 20
man × 19
shell × 18
less × 16
text × 15
recursive × 13
ubuntu × 12
scripting × 12
terminal × 12
directory × 12