View previous topic :: View next topic |
Author |
Message |
nom de plume Tux's lil' helper
Joined: 01 Jun 2006 Posts: 104
|
Posted: Thu Jan 25, 2007 6:01 pm Post subject: Remove the stub in a script+tarball? |
|
|
How do I remove the shell script STUB at the beginning of a script+tarball file? I have 'somefile.gz.sh' that has scripting code at the top, then it says "END OF STUB", and then there is a bunch of binary data afterwards. I tried deleting everything up to the binary data and then gunzipping the file, but that did not work.
The scripted tarball was made with Makeself. |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Thu Jan 25, 2007 6:42 pm Post subject: |
|
|
Moved from Gentoo Forums Feedback to Other Things Gentoo as it's not related to the forums. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
nom de plume Tux's lil' helper
Joined: 01 Jun 2006 Posts: 104
|
Posted: Thu Jan 25, 2007 9:17 pm Post subject: |
|
|
My fault, I thought I was in OTW... |
|
Back to top |
|
|
nom de plume Tux's lil' helper
Joined: 01 Jun 2006 Posts: 104
|
Posted: Thu Jan 25, 2007 10:27 pm Post subject: |
|
|
I figured it out:
Code: | tail -n +150 somefile.gz.sh > somefile.tar.gz |
where 150 is the number of lines in the script. this is usually given at the top of the file (skip=150). |
|
Back to top |
|
|
|