grep big-data | show 20 chars before, 10 chars after

Submitted by Gast (nicht überprüft) on Fr, 11/20/2020 - 03:06

Search for BERLIN in a very big file

cat very-big-bigfile.txt | grep -o -P '.{0,33}BERLIN.{0,44}'


Neuen Kommentar schreiben

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.