LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2003, 09:45 AM   #1
black111
LQ Newbie
 
Registered: May 2003
Posts: 8

Rep: Reputation: 0
Angry 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!!
 
Old 05-22-2003, 09:48 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 05-22-2003, 10:01 AM   #3
black111
LQ Newbie
 
Registered: May 2003
Posts: 8

Original Poster
Rep: Reputation: 0
yes tar is cool'
But i need to change this bundle script.
this is related to the Here document.

cheers
black
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samsung Electronics To Bundle Servers with Linux, t3gah Linux - General 1 06-29-2005 09:48 AM
Why developers don't bundle dependencies mooreted Linux - General 6 12-05-2004 05:56 PM
make problems installing Bundle:Bugzilla on SuSE 9 mosko Linux - Software 0 03-20-2004 03:01 AM
KDE Bundle mackie_lin Linux - Software 2 11-27-2002 08:37 PM
THEY'RE HERE: My little bundle of joy pickledbeans Slackware 2 07-06-2002 11:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration