Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Last X bytes: dd bs=1 skip=X

First X bytes: dd bs=X count=1



Thanks, there were few errors after testing.

1. stripping fist X bytes: dd bs=1 skip=X

2. stripping last X bytes: truncate -s -X




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: