SHOW:
|
|
- or go back to the newest paste.
| 1 | root@tuipveus:/tmp# time find . -maxdepth 1 -type f -name \*NO-IP* -exec ls '{}' \; |wc -l
| |
| 2 | 22422 | |
| 3 | ||
| 4 | real 4m16.999s | |
| 5 | user 1m37.822s | |
| 6 | sys 2m34.178s | |
| 7 | ||
| 8 | find . -type f -name '*.txt' -print0 |xargs -0 -l50 rm | |
| 9 | - | find . -maxdepth 1 -type f -name '*.txt' -print0 |xargs -0 -l50 ls |
| 9 | + | find . -maxdepth 1 -type f -name '*.txt' -print0 |xargs -0 -l50 ls |
| 10 | ||
| 11 | ################################ | |
| 12 | FROMDIR=/var/mp/$PRJNUM/log | |
| 13 | TODIR=/var/mp/$PRJNUM/log/old | |
| 14 | find "$FROMDIR" -maxdepth 1 -type f -name "*$NOW" -mtime -1 -print0 | xargs -0 -I {} mv {} "$TODIR" |