Bash script to do copying and ISO image creating, etc.
Hi folks,
Please advise how to write a bash script to do following job.
If I want to create an ISO image from files in several directories, say,
/path/to/directory-A
/path/to/directory-B
/path/to/directory-C
etc.
I used following command line
# mkisofs -R -o Image.iso -J -hide-rr-moved /path/to/directory-A /path/to/directory-B /path/to/directory-C
But all files in 3 directories merged together, not under 'Direcotry-A', 'Directory-B', 'Directory-C', etc. separately. So I have to do the stupid way copying all them to a NEW directory for creating ISO image. If there are 40+ directories, it will take a lot of work.
I'm searching an easy way to eliminate copying steps, because I have to do it repeatedly every 15 days. I can create a tarball of all directories and burn the same on CD. But I could not read their files direct on CD without untar the tarball.
TIA
B.R.
satimis
|