So I'm looking for a command on Linux that would let me execute a file as binary, but skipping the first x bytes, so:

$ echo "some text" > file
$ cat /bin/bash >> file
$ ??? file  # should run bash
link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

this is probably the closest you will get:

dd if=container.txt of=executable bs=<bytes to skip> skip=1
chmod +x executable
./executable
link|improve this answer
Not quite was I was hoping for, but I think you're right about it being the best I can do. – Brendan Long Feb 11 '10 at 23:34
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.