[kubuntu] Embedding files in a bash script?

view story

http://ubuntuforums.org – How do I embed a data file (e.g. audio, video, compressed, etc) in a bash script, so that the bash script can extract/create a file from itself? Would something like this work? Code: #!/bin/bash cat << _AUDIO > /tmp/music.mp3 contents of audio file _AUDIO mpg123 /tmp/music.mp3 rm /tmp/music.mp3 exit 0 Or how else can this be done? I know the TrueCrypt installer does this, so I know it can be done. (Hardware)