Skip to content

Instantly share code, notes, and snippets.

@travisdowns
Created July 6, 2020 21:58
Show Gist options
  • Save travisdowns/3d4bb4e9efd0db67b3fd450a51eae639 to your computer and use it in GitHub Desktop.
Save travisdowns/3d4bb4e9efd0db67b3fd450a51eae639 to your computer and use it in GitHub Desktop.

Revisions

  1. travisdowns created this gist Jul 6, 2020.
    4 changes: 4 additions & 0 deletions headtail.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    dd if=/dev/urandom of=64mib.bin bs=1024K count=64
    echo $((64*1024*1024))
    time tail -c +$((16*1024*1024+1)) 64mib.bin | head -c $((32*1024*1024+1)) > out.bin
    ls -lh out.bin