Linux which command can intercept the contents of the specified start and end locations of the file?

for example, the file a.bin is a binary file, and the file is very large. I want to intercept 1024-5566 bytes and save it as a file

Mar.26,2021

dd if= skip= bs= count=

cut-b try


you can use the shell script:

-sharp!/bin/bash
cat a.bin| tail -n +102| head -n 5566| while read line
do
echo ${line%.*}
done >newFile.txt

this should be what you want


dd if=a.bin of=a.out skip=1024 bs=1c count=4542

Menu