Oracle Linux xargs Command
This manual page documents the GNU version of xargs. xargs reads items from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/echo) one or more times with any initial-arguments followed by items read from standard input. Blank lines on the standard input are ignored.
-p Prompt the user about whether to run each command line and read a line from the terminal.
-I replace-str Replace occurrences of replace-str in the initial-arguments with names read from standard input. Also, unquoted blanks do not terminate input items; instead the separator is the newline character.
Examples:
List all *.dat files in the current directory and zip each file.
ls *.dat | xargs -I {} zip ./{}.zip {}
Generates a compact listing of all the users on the system.
cut -d: -f1 < /etc/passwd | sort | xargs echo
-p Prompt the user about whether to run each command line and read a line from the terminal.
-I replace-str Replace occurrences of replace-str in the initial-arguments with names read from standard input. Also, unquoted blanks do not terminate input items; instead the separator is the newline character.
Examples:
List all *.dat files in the current directory and zip each file.
ls *.dat | xargs -I {} zip ./{}.zip {}
Generates a compact listing of all the users on the system.
cut -d: -f1 < /etc/passwd | sort | xargs echo
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/638844/viewspace-1061075/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux xargs 命令Linux
- Linux-xargs命令Linux
- Linux的xargs命令Linux
- Linux xargs 命令詳解Linux
- Linux命令(1)——xargs命令Linux
- Linux xargs命令介紹Linux
- linux 的xargs命令用法Linux
- Linux下xargs命令詳解及xargs與管道的區別Linux
- linux 命令值xargs與trLinux
- linux commandLinux
- linux中xargs命令的使用方式Linux
- Linux 引數代換 命令 xargsLinux
- linux下xargs命令用法詳解Linux
- oracle dump commandOracle
- Linux find commandLinux
- xargs在linux中的使用詳解Linux
- 每天一個Linux命令(1):xargsLinux
- linux系統中xargs命令的使用方式Linux
- linux find command studyLinux
- 每天一個linux命令:find命令之xargsLinux
- linux下find,xargs命令詳解和例項Linux
- 【轉】linux中的cut/tr/join/split/xargs命令Linux
- Linux檔案查詢命令find,xargs詳述Linux
- xargs 命令詳解,xargs 與管道的區別
- xargs命令詳解,xargs與管道的區別
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- Linux Command常用匯總Linux
- 轉貼oracle兩篇文章:Guide to Advanced Linux Command MasteryOracleGUIIDELinuxAST
- xargs 命令教程
- 每天一個 Linux 命令(21):find命令之xargsLinux
- Linux/Unix 檔案查詢命令 find, xargs 詳述Linux
- Linux檔案查詢命令find,xargs詳述(轉)Linux
- Linux / Unix Command: loggerLinux
- 【Linux】git note -v command not foundLinuxGit
- xargs用法詳解
- xargs的用法示例
- linux shell 指令碼攻略學習6-xargs詳解Linux指令碼