i'm writing a simple shell script to automate removal of directories.

i've managed to extract the user home directory from LDAP server using
"ldapsearch uid=userabc homedirectory | grep homedirectory | awk -F= '{print
$2;}'".

the above command result is "/home/userabc"

pls advise how i can pass the result of "/home/userabe" to "rm -f -r" to
delete the directory?

thanks.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to