Portál AbcLinuxu, 9. května 2025 20:50
find /home -iname *cokoliv* -type -f -print0 | -xargs -0 /bin/rm -f;
cd /home for F in *[0-9]; do find "$F" -iname anything -type f -print0 -exec rm -f '{}' \; doneSnad jsem nic nepodělal... jo a bere to všechno s číslem na konci
test -w
.
getent passwd | cut -d: -f1 | grep -e '[0-9]$' | while read prom; do find "/home/9/$prom" -iname...; done
find *[0-9 -iname anything -type f -print0 | xargs ...resp
find . -regex './[^/]*[0-9]/.*' -print0 | xargs
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.