Advertisement
metalx1000

Simple Self Extracting Bash Script

Mar 29th, 2023
1,389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sed '0,/^#EOF#$/d' $0 | tar zx; exit 0
  4. #EOF#
  5.  
  6.  
  7. ################################
  8. chmod +x selfextracting.sh
  9. tar -czvf data.tar.gz /tmp/stuff
  10. cat data.tar.gz >>selfextracting.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement