Home » Infrastructure » Unix » unix shell script (bash)
unix shell script [message #399255] Tue, 21 April 2009 05:40 Go to next message
Messages: 16
Registered: October 2008
Junior Member

I have the following text file:



I would like to create the directory structure as mentioned above.
Assume that i am currently in GVK. all the directories should come under this directory.
Also i would like to avoid rows that are having spaces.

I have the following script.

while read file
if [ ! -d `$file` ] ; then
mkdir -p $file
fi ;
done < path.txt

Please suggest if any changes needs to be done or please send me the code.

G.Vamsi Krishna
Re: unix shell script [message #399259 is a reply to message #399255] Tue, 21 April 2009 05:52 Go to previous message
Michel Cadot
Messages: 68421
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no connection with Oracle.
Please find a more appropriate forum.
The topic is locked.

Previous Topic: Unable to start EM on Solaris 10 Oracle db 10.2
Next Topic: UNIX script to check archivelog backup
Goto Forum:

Current Time: Sat Apr 01 17:27:51 CDT 2023