Dans la suite, pourquoi le troisième exemple de basename
y compris le répertoire qui contient le fichier ?
WGroleau@MBP Music % basename Korean/kr_audio.tbz
kr_audio.tbz
WGroleau@MBP Music % basename ./Korean/kr_audio.tbz
kr_audio.tbz
WGroleau@MBP Music % time find . -type f -exec echo "$(basename "{}") ++ $(dirname "{}")" \; > /tmp/tmp
find . -type f -exec echo "$(basename "{}") ++ $(dirname "{}")" \; > /tmp/tmp 3.93s user 6.74s system 87% cpu 12.181 total
WGroleau@MBP Music % head !$
head /tmp/tmp
./Tx-01-00.mp3 ++ .
./Korean/kr_audio.tbz ++ .
./syn_HCA001-Cem.m4a ++ .
./Cetera.amad ++ .
./.DS_Store ++ .
./Japanese/JAI.tbz ++ .
./.localized ++ .
./iTunes SongKong/iTunes Library Extras.itdb ++ .
./iTunes SongKong/iTunes Music Library.xml ++ .
./iTunes SongKong/.DS_Store ++ .