0

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'
Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
caot
  • 3,066
  • 35
  • 37

0 Answers0