[root@station1 ~]# mkdir findtest
[root@station1 ~]# cd findtest
[root@station1 findtest]# mkdir abc
[root@station1 findtest]# echo "nihao" > 123.txt
[root@station1 findtest]# echo "nihao" > abc/345.txt
[root@station1 findtest]# echo -e "nihaonhaha" > abc/567.txt
[root@station1 findtest]# echo -e "nihaonhaha" > 789.txt
[root@station1 findtest]# find . -type f |
xargs -n 1
linuxjishu/13830.html target=_blank class=infotextkey>awk 'END{printf NR == 1 ? FILENAME"n" : ""}'
./abc/345.txt
./123.txt
[root@station1 findtest]#
[root@station1 ~]# find /root/findtest -type f | xargs -n 1 awk 'END{printf NR==1 ? FILENAME"n" : ""}'
/root/findtest/abc/345.txt
/root/findtest/123.txt
[root@station1 ~]#