The following is perfect to find the Permission denied file/folder
. Now need to add pipeline to the follows to exec sudo chmod o+rw
. How to make it work? Thanks.
find . 2>&1 | sed 's/^[^:]*: .\(.*\).: Permission denied/\1/p;d'
The following is perfect to find the Permission denied file/folder
. Now need to add pipeline to the follows to exec sudo chmod o+rw
. How to make it work? Thanks.
find . 2>&1 | sed 's/^[^:]*: .\(.*\).: Permission denied/\1/p;d'