Timeline for Skip first 3 bytes of a file
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 2, 2023 at 12:11 | comment | added | Lena Schimmel |
Warning: using dd like this will slow down the whole process by several orders of magnitude. bs=1 sets the block size to a single byte which prevents efficient file IO. Switching the parameters, e.g. bs=3 skip=1 helps a little bit, but using tail is much more efficient anyway. I did not test sed for speed.
|
|
| Feb 3, 2017 at 23:40 | history | edited | Jonathan Leffler | CC BY-SA 3.0 |
Add fix from comments (finally) and add extra information about that.
|
| Nov 8, 2013 at 7:57 | comment | added | MUY Belgium | You may want to use standard input as such cat A_FILE | tail -c +4 with gnu. | |
| Oct 27, 2012 at 15:12 | vote | accept | Alvin SIU | ||
| Oct 27, 2012 at 15:11 | vote | accept | Alvin SIU | ||
| Oct 27, 2012 at 15:12 | |||||
| Oct 25, 2012 at 13:57 | vote | accept | Alvin SIU | ||
| Oct 25, 2012 at 13:57 | |||||
| Oct 25, 2012 at 13:55 | comment | added | Alvin SIU |
Thanks for your help. Both the sed and the tail commands work in AIX 6.1. For the dd command, it should be dd if=A_FILE bs=1 skip=3 in AIX 6.1
|
|
| Oct 24, 2012 at 21:26 | history | migrated | from stackoverflow.com (revisions) | ||
| Oct 24, 2012 at 15:38 | history | answered | Jonathan Leffler | CC BY-SA 3.0 |