Portál AbcLinuxu, 6. května 2025 20:03
Řešení dotazu:
find . -type f | perl -e ' while (<STDIN>) { chomp; printf "%s %4o\n", $_, (stat $_)[2] & 07777; }' ./file1 644 ./file2 644 ./file3 600treba si pozriet man stranku k stat na perl:
perldoc -f stat
pkgproto(1)
by ti mohol pomoct.
# find . -type f -print | pkgproto f none file1 0644 root root f none file2 0644 root root f none file3 0600 root root # # ll total 6 drwxr-xr-x 2 root root 512 Oct 10 18:32 . drwxr-xr-x 10 root root 1536 Oct 10 18:31 .. -rw-r--r-- 1 root root 0 Oct 10 18:32 file1 -rw-r--r-- 1 root root 0 Oct 10 18:32 file2 -rw------- 1 root root 0 Oct 10 18:32 file3 #
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.