[root@localhost demo]# cat demo1.txt
1 2 3 4 5 6
7 8 9 10 11
[root@localhost demo]# xargs < demo1.txt
1 2 3 4 5 6 7 8 9 10 11
[root@localhost demo]# xargs -n2 < demo1.txt
1 2
3 4
5 6
7 8
9 10
11
[root@localhost demo]# xargs -n 2 < demo1.txt
1 2
3 4
5 6
7 8
9 10
11
[root@localhost demo]# echo "wo,ai,ni,zhongguo,qin,ai,de,mu,qin" | xargs -d ","
wo ai ni zhongguo qin ai de mu qin
[root@localhost demo]# echo "wo,ai,ni,zhongguo,qin,ai,de,mu,qin" | xargs -d "," -n 2
wo ai
ni zhongguo
qin ai
de mu
qin
[root@localhost demo]# mkdir temp
[root@localhost demo]# find . -name "*.txt"
./aaa.txt
./bbb.txt
./c.txt
./alex.txt
./sort.txt
./sort1.txt
./ip.txt
./luffy.txt
./bbb/ddd.txt
./bbb/{1...10}alex.txt
./demo1.txt
[root@localhost demo]# find . -name "*.txt" | xargs -i mv {} temp/
[root@localhost demo]# find . -name "*.txt"
./temp/aaa.txt
./temp/bbb.txt
./temp/c.txt
./temp/alex.txt
./temp/sort.txt
./temp/sort1.txt
./temp/ip.txt
./temp/luffy.txt
./temp/ddd.txt
./temp/{1...10}alex.txt
./temp/demo1.txt
[root@localhost demo]# find ./temp -name "*.txt" | xargs -I alltext mv alltext ./
[root@localhost demo]# find . -name "*.txt"
./aaa.txt
./bbb.txt
./c.txt
./alex.txt
./sort.txt
./sort1.txt
./ip.txt
./luffy.txt
./ddd.txt
./{1...10}alex.txt
./demo1.txt