Archaned
10-17-2001, 07:38 AM
How do I go about building a list of directories where each level is clearly defined and separated. I need to account
for directories with spaces in their names.
At the moment I use
find . -type d -print > dirlist
then i go thru the list manually separating
the levels and identifying those with spaces.
These directories are created from a client program that allows spaces
e.g output from user /home/user/johnqp
bin
docs
docs/scripting
docs/my script
misc
misc/to do
etc...
If someone can point me in the right direction it'll be greatly appreciated.
for directories with spaces in their names.
At the moment I use
find . -type d -print > dirlist
then i go thru the list manually separating
the levels and identifying those with spaces.
These directories are created from a client program that allows spaces
e.g output from user /home/user/johnqp
bin
docs
docs/scripting
docs/my script
misc
misc/to do
etc...
If someone can point me in the right direction it'll be greatly appreciated.