I need to search something in a huge log-file (over 14 GB). I'm pretty sure it's in the last 4 GB or so.
Is there a way to skip the first X GB to speed things up?
greplinuxlog-files
I need to search something in a huge log-file (over 14 GB). I'm pretty sure it's in the last 4 GB or so.
Is there a way to skip the first X GB to speed things up?
Best Answer
I guess you could use tail to only output that last 4GB or so by using the
-c
switchYou could probably do something with dd too by setting
bs=1
andskip
ing to the offset you want to start e.g.