Quantcast
Channel: Linux command to retrieve a byte range from a file - Server Fault
Viewing all articles
Browse latest Browse all 7

Answer by DerfK for Linux command to retrieve a byte range from a file

$
0
0

You can use dd if=logfile of=pieceoflogfile skip=startingblock count=#ofblocks (possibly with bs=1 to get one-byte blocks, otherwise it uses 512 byte blocks). Not sure how efficient it is to tell it to write one byte at a time, though.


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>