💻 Software
How to output file from the specified offset, but not "dd bs=1 skip=N"?
Fresh5 days ago
Mar 15, 202679402 viewsConfidence Score0%
0%
Problem
How to do thing like , but efficiently, not using not 1-byte reads and writes? The solution is expected: To be simple (for non-simple I can write some Perl oneliner that will do this) To support large offsets and lengths (so hacks with block size in dd won't help) Partial solution (not simple enoug…
Error Output
dd if=somefile bs=1000 skip=1 count=31337 | { dd bs=337 count=1 of=/dev/null; rest_of_pipeline; }
# 1337 div 1000 and 1337 mod 1000Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to output file from the specified offset, but not "dd bs=1 skip=N"?
Low Risk
This should do it (on gnu dd): In case you are using as well, you may also consider . From : Ps: I understand this question is old and it seems these flags were implemented after the question was originally asked, but since it's one of the first goo…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix