5344
5432
1万
管理员
本站资源如失效,请点击反馈!
$ cat /etc/passwd | grep root
$ grep root /etc/passwd
$ echo "hello world" | echo
$ echo "hello world" | xargs echohello world
$ xargs [-options] [command]
$ echo "one two three" | xargs mkdir
$ xargs# 等同于$ xargs echo
$ xargshello (Ctrl + d)hello
$ xargs find -name"*.txt"./foo.txt./hello.txt
$ echo -e "a\tb\tc" | xargs -d "\t" echoa b c
$ echo 'one two three' | xargs -p touchtouch one two three ?...
$ echo 'one two three' | xargs -t rmrm one two three
$ find /path -type f -print0 | xargs -0 rm
$ find . -name "*.txt" | xargs grep "abc"
$ xargs find -name"*.txt" "*.md"find: paths must precede expression: `*.md'
$ xargs -L 1 find -name"*.txt"./foo.txt./hello.txt"*.md"./README.md
$ echo -e "a\nb\nc" | xargs -L 1 echoabc
$ xargs -n 1 find -name
$ echo {0..9} | xargs -n 2 echo0 12 34 56 78 9
$ cat foo.txtonetwothree$ cat foo.txt | xargs -I file sh -c 'echo file; mkdir file'one twothree$ ls one two three
$ docker ps -q | xargs -n 1 --max-procs 0 docker kill
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|飞雪团队
GMT+8, 2024-11-24 03:50 , Processed in 0.067264 second(s), 24 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.