I'm trying to see every file which my group (staff) has in a certain directory, recursively. The pipe
ls -l -R | grep staff
is not working exactly as I want, as for every directory to which my user does not have access, a line like:
ls: ./directory/lost+found: The file access permissions do not allow the specified action.
gets in the output. I don't care if I don' have permissions. But I thought that grep would only take back the output lines from "ls" which have "staff" on them, and not the messages that "ls" throws.
Is there anyway to take those lines out?
Thanks in advance,
panchopp.