Okay, here's another "I know I can use sed, but I'm too green to know how" question:
I have a script which executes a command:
command -p/dir1 -p/dir2....-p/dirN $file
I have a file while lists dir1 to dirN called "job.lst":
/dir1
/dir2
...
/dirN
How do I use sed to read the job.lst file and insert -p/dirN for as many /dirN as there are?
Thanks,
Jeff
I have a script which executes a command:
command -p/dir1 -p/dir2....-p/dirN $file
I have a file while lists dir1 to dirN called "job.lst":
/dir1
/dir2
...
/dirN
How do I use sed to read the job.lst file and insert -p/dirN for as many /dirN as there are?
Thanks,
Jeff