Greetings all,
as the title says. The following code excludes the .subdirectories:
, but the subdirectory.txt still contains the parent directory:
, instead of:
.
Any help would be appreciated.
Kindest regards,
M
as the title says. The following code excludes the .subdirectories:
Code:
find /home/directory/* ! -name /home/directory -prune -type d > subdirectory.txt
Code:
/home/directory/subdirectory_1
/home/directory/subdirectory_2
.
/home/directory/subdirectory_n
Code:
subdirectory_1
subdirectory_2
.
subdirectory_n
Any help would be appreciated.
Kindest regards,
M