Portál AbcLinuxu, 7. května 2025 14:43
Řešení dotazu:
find ~/Documents/ -type d -print0 | perl -0ne 'chomp; print "$_\n" if @{[<$_/*.jpg>]} > 100'
find /usr/share -type d|perl6 -ne '.say if .IO.dir( test => *.ends-with( ".jpg" ) ) > 100'
find -name "*.php" -exec dirname {} \; | sort | uniq -c
find . -type d -exec sh -c '[ "$(ls "{}" | grep -i .jpg |wc -l)" -gt 100 ] && echo {}' \;
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.