Saya menggunakan baris berikut untuk menemukan semua sub-direktori dari PWD dan dijalankan svnadmin verify
pada setiap direktori (saya sudah tahu bahwa itu adalah repositori Subversion)
find ./* -maxdepth 0 -exec svnadmin verify {} \;
Ini berfungsi dengan baik, selain fakta bahwa outputnya terlihat seperti ini:
* Verifying repository metadata ...
* Verifying metadata at revision 1 ...
* Verifying metadata at revision 2 ...
* Verifying metadata at revision 4 ...
* Verifying metadata at revision 5 ...
* Verifying metadata at revision 6 ...
* Verifying metadata at revision 9 ...
* Verifying metadata at revision 10 ...
* Verifying metadata at revision 12 ...
* Verifying metadata at revision 14 ...
* Verifying metadata at revision 15 ...
* Verifying metadata at revision 18 ...
* Verifying metadata at revision 20 ...
* Verifying metadata at revision 22 ...
* Verified revision 0.
* Verified revision 1.
* Verified revision 2.
* Verified revision 3.
* Verified revision 4.
* Verified revision 5.
* Verified revision 6.
* Verified revision 7.
* Verified revision 8.
* Verified revision 9.
* Verified revision 10.
* Verified revision 11.
* Verified revision 12.
* Verified revision 13.
* Verified revision 14.
* Verified revision 15.
* Verified revision 16.
* Verified revision 17.
* Verified revision 18.
* Verified revision 19.
* Verified revision 20.
* Verified revision 21.
* Verified revision 22.
* Verified revision 23.
* Verified revision 0.
* Verifying repository metadata ...
* Verifying metadata at revision 4 ...
* Verifying metadata at revision 5 ...
* Verifying metadata at revision 6 ...
* Verifying metadata at revision 7 ...
* Verifying metadata at revision 9 ...
* Verified revision 0.
* Verified revision 1.
* Verified revision 2.
* Verified revision 3.
* Verified revision 4.
* Verified revision 5.
* Verified revision 6.
* Verified revision 7.
* Verified revision 8.
* Verified revision 9.
Saya benar-benar ingin find
mencetak nama file sebelum mengeksekusi svnadmin verify
perintah, untuk membuat logging lebih mudah.
Saya sudah mencoba memerasnya sedikit ls
di sana tetapi memperbaikinya, bagaimana saya harus melakukan ini (lebih baik sederhana)?
'%p'
ke'%p\n'
sehingga mendahului nama memverifikasi keluaran pada baris itu sendiri.