用下面的命令:
find /tmp -depth -name file
我得到:
/tmp/file /tmp/test_file/file
但是,我需要添加find命令,以获得以下打印?
file=/tmp/file file=/tmp/test_file/file
也许用printf选项:
printf
find /tmp -depth -name "file" -printf "file=%h/%f\n"