Examples of Linux find command

Posted by zhuizhuhaomeng Blog on November 11, 2023
1
2
3
4
5
6
7
#!/bin/bash

for name in `find /  -maxdepth 1 -type d -regex "/[0-9]+t-[a-z]"`; do
    for d in `find /16t-a/trace-pkg-db -maxdepth 2 -type d -regex ".*/\(rpms\|debs\)"`; do
        find $d -type f -regex  ".*/\(kernel\|linux\).*"
    done
done