次の例でfindコマンドの使用に出くわしました(ディレクトリ構造をどこかにコピーします)
find olddir -name script.sh -printf "%p\0" -printf "newdir/%P\0" | xargs -0L2 cp -n
%p と %PI の違いがよくわかりません find のマニュアルページを読んでください。
%p File's name.
%P File's name with the name of the command line argument under which it was found removed.
%p と %p の違いは何ですか
私はそれが何を意味するのか混乱しています
%P File's name with the name of the command line argument under which it was found removed.