Page 1 of 1

Quick Help. Hopefully.

Posted: Thu Mar 25, 2004 9:56 pm
by eggoz
I created a script to list only dirs and not files. The only problem is it only works in one dir, ./. Here is the Script. When I set it to another dir, no matter what dir it is, it will list all files and dir. I can not understand why.

The other part of my question is regrading paths. I know how to print the full path of a file. Is there a way to only print part of the path? For example instead of root/sub1/sub2/file, it will only print sub/file ? Thanks for the help.