mirror of
https://github.com/54shady/kernel_drivers_examples.git
synced 2025-08-11 23:32:00 +00:00
cat info
This commit is contained in:
@ -72,3 +72,15 @@ echo "$f =" `cat $f`
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 打印所有regulator.[1-12]下num_users里的信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
i=1
|
||||||
|
cat_info="num_users"
|
||||||
|
while (( $i < 13 ))
|
||||||
|
do
|
||||||
|
echo "regulator.$i/$cat_info =" `cat regulator.$i/$cat_info`
|
||||||
|
(( i+=1 ))
|
||||||
|
done
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user