So you only want to pick out the <USER> part of your find request ?
Or you just want to show which <USER> there are located in /home ?Code:for var in `find /home/ -type d | awk -F / '{print $3}' |uniq`; do echo $var done
Code:for var in `ls /home/*`; do echo $var done


Reply With Quote

Bookmarks