bash and strings
girishvenkatachalam at gmail.com
Thu Nov 15 20:43:46 PST 2007
On 03:43:24 Nov 16, jhall at vandaliamo.net wrote:
> I'm sure this is easy, and I am making it harder than it is.
> I am being supplied a list of files, and need to create the files and
> directories to hold them, but I cannot figure out how to take the string
> For example, I am given
> I need to create the /usr/local/scripts directory and then create
> Any suggestions would be greatly appreciated.
There is always more than one way to skin a cat. :)
Perhaps you will like mine.
/bin/mkdir -p $DIR
You can put this in a loop with path as loop variable.
Best of luck!
More information about the freebsd-questions