I am having an odd error in my shell script.
using this:
$find /sys/class/ -name temp -exec cat '{}' ';'
I get output of
77000
find: `/sys/kernel/debug': Permission denied
I only want the the 77000 to display however I cannot limit the search to the class subfolder for some reason.
$find /sys/class/ -name temp -exec cat '{}' ';'
Typing the above I don’t get any result at all…
Weird eh?
Haha if anyone could clarify why this happens that would be awesome!
find /sys -name temp -exec cat '{}' ';' 2> /dev/null