• + 1 comment

    On my opnion head and tail is a good approach because we can use with binary files too. ie:

    head -c x | tail -c x