
17 Nov
2020
17 Nov
'20
10:24 a.m.
On Tue, Nov 17, 2020 at 10:22:23AM +0800, Wu Fengguang wrote:
+ local downloaded_pkgs=$(find /var/ -type f -name "*.pkg.tar.xz")
+cleanup_downloaded_pkgs() +{ + find /var/ -type f -name "*.pkg.tar.xz" -exec rm -f -- '{}' \; +}
The 2 find can be merged to a common function.
Ok, i'll do it.
btw what's the example find output?
i'll add example next time.
Can we limit the find depth and/or let the base dir more exact?
OK. Thanks, Wang Yong