-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2018-01-23 at 23:08 -0500, David T-G wrote:
...and then jdd@dodin.org said... % % Le 23/01/2018 à 15:56, Carlos E. R. a écrit : % ... % >find . -ls % > % linux-owxt:/run/media/jdd/intenso5to2 # find . -ls > ../find5.txt % linux-owxt:/run/media/jdd/intenso5to2 # cd ../intenso4to/ % linux-owxt:/run/media/jdd/intenso4to # find . -ls > ../find4.txt % % the size of the to files is not identical, but the size of the file % (more than 300Mb) [snip]
This won't work because -ls includes the inode number, which will not be the same for a given file on two disks. Here's another case where you could use that cool printf option to pull out only the pieces you need to compare :-)
Inode number is not the inode count, as in ls -l command? OH, you mean the first number. Crumbs. cer@Telcontar:/home_aux/cer/Documents/benchmarking> find . -ls 158907909 4 drwxr-xr-x 2 cer users 4096 Jan 11 11:20 . 158907918 8 -rw-r--r-- 1 root root 4178 Jan 10 20:12 ./4.4.103-18.41-default.log 158907947 12 -rw-r--r-- 1 cer users 9145 Jan 11 10:59 ./Isengard-sql-bench_20180110-antes.txt 158907948 12 -rw-r--r-- 1 cer users 8602 Jan 11 10:59 ./Telcontar-sql-bench_20180110-antes.txt 158907949 20 -rw-r--r-- 1 cer users 19516 Jan 10 23:41 ./Telcontar-iozone_20180110-antes.txt 158907946 4 -rw-r--r-- 1 cer users 2258 Jan 10 19:52 ./Telcontar-interbench_20180110-antes_y_malo.txt 158907950 20 -rw-r--r-- 1 cer users 19506 Jan 11 00:09 ./Isengard-iozone_20180110-antes.txt Ok, then, adapting another example in the info find page, this: find -printf "%3n %-8u %-8g %8s %T+ %p\n->%l\0" | cat (which fails on the '.' entry, by the way) - -- Cheers, Carlos E. R. (from openSUSE 42.2 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlpobwcACgkQtTMYHG2NR9V75QCgmCJUQVjGsPUTnxn4A4M+Fe/C hSMAniJZzurg/WW6+FX/ebZbJpAHyk8P =gRWe -----END PGP SIGNATURE-----