cat xargs find
1:cat
[root@xilong ~]# cat >>/root/xilong/xilong.txt<<EOF
> Hi,there. My name is Xilong;
> I come from Xuzhou City;
> I was major in Electronics and Information;
> I am working at StarTimes as an Engineer;
> EOF
[root@xilong ~]# cd xilong/
[root@xilong xilong]# ls
xilong.txt
[root@xilong xilong]# cat xilong.txt
Hi,there. My name is Xilong;
I come from Xuzhou City;
I was major in Electronics and Information;
I am working at StarTimes as an Engineer;
2:xargs
[root@xilong xilong]# echo "1 2 3 4 5" >xilong.txt
[root@xilong xilong]# cat xilong.txt
2 3 4 5
[root@xilong xilong]# xargs -n2 < xilong.txt
2
4
3:find
[root@xilong xilong]# find /root/xilong/ -type f -name "xilong.txt" | xargs ls -l
-rw-r--r-- 1 root root 10 May 14 19:46 /root/xilong/xilong.txt
[root@xilong xilong]# find /root/xilong/ -type f -name "xilong.txt" | xargs rm
[root@xilong xilong]# ls
gabriel.txt