I want to search for a string inside the /sys/class/tty/*
directories. So I tried with:
# grep -rn path -e pattern
but it returns nothing. Example:
# cat /sys/class/tty/ttySTM0/iomem_base
0x40010000
# ls -l /sys/class/tty/ttySTM0/iomem_base
-r--r----- 1 root root 4096 Jan 17 10:37 /sys/class/tty/ttySTM0/iomem_base
# grep -rn /sys/class/tty/ -e 0x40010000
#
If I use the same syntax inside another directory it seems to work:
# grep -rn /opt -e Could
# /opt/logs/joku1_log.txt:29:Could not read interface wlan0 flags: No such device
Is there some caveats for such a research?
My goal is to find which tty
has a specific iomem_base
address.