I am trying to find an Android shell command that is able to read a file but that has the power to skip, for example 512 bytes every 1024 bytes.
Does such a command exist and is available for Android devices?
I have looked at dd documentation but couldn't figure out if it is possible to use dd for that purpose. You can make dd skip bytes at the beginning of the file, you can make it read X bytes from a file, but I do not see how to get the feature that I described.
EDIT:
For my purpose the command/script should output to stdout, and the processing will read the output like a stream, so it will not be something like "cat a file, do processing, cat a file". It is like "while true; do cat a file; done | processing".
The list of available commands is here: http://www.busybox.net/downloads/BusyBox.html