LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   help with bundle script (https://www.linuxquestions.org/questions/programming-9/help-with-bundle-script-61169/)

black111 05-22-2003 09:45 AM

help with bundle script
 
i have a bundle script:
#!/bin/sh
#bundle group files in distribution package

echo"# To unbundle sh this file"
for i
do
echo "echo $i 1>&2"
echo "cat >i <<'End of $i'"
cat $i
echo "END of $i"
done
This script works it bundles and unbundles all file given as arguments.
Now i want to change the script so i can unbundle only some files given as arguments.If no files are given as arguments all file should be recreated.
I need help with this.
How do i change the script so i can do this??
Thanks for the help!!

jharris 05-22-2003 09:48 AM

I don't follow what you are trying to do? Join lots of files together into a single larger file? Then split them up again after? If so why can't you use tar?

cheers

Jamie...

black111 05-22-2003 10:01 AM

yes tar is cool'
But i need to change this bundle script.
this is related to the Here document.

cheers
black


All times are GMT -5. The time now is 12:08 AM.