• Use xargs outside of find.

    find之外使用xargs

    youdao

  • Listing 15. Example of using of the xargs tool.

    清单15. xargs工具使用示例

    youdao

  • Listing 14. Example of output from the xargs tool.

    清单14.xargs工具产生输出示例

    youdao

  • So why is there only one line of output from xargs?

    为什么xargs只有输出

    youdao

  • Listing 13. Example of the classic use of the xargs tool.

    清单13. xargs工具经典用法示例

    youdao

  • If such an error occurs, use a pipe and the xargs utility.

    如果出现此类错误,可使用管道xargs实用工具

    youdao

  • The xargs command will not build arbitrarily long commands.

    xargs命令不会构建任意长度的命令。

    youdao

  • Using the find command with the -exec option or with xargs.

    使用带有-exec选项xargsfind命令

    youdao

  • In Listing 19 we try using find with -exec rather than ls with xargs.

    清单19我们尝试使用带有-execfind不是带有xargsls

    youdao

  • Next, awk reduces the output to the process ID, which you feed into xargs.

    接下来awk只显示输出结果中的进程ID将它传递给xargs

    youdao

  • Xargs reads data from a pipe and runs a specified command for every line read.

    xargs命令可管道读取数据每行读取内容运行指定命令

    youdao

  • We could use xargs instead, but we already saw problems with blanks in file names.

    我们也可以改为使用 xargs我们已经看到了文件名包含空格时出现的问题

    youdao

  • On the other hand, xargs is rarely used except with other utilities, most often find.

    一方面,xargs除了其他实用程序(常见的是find)配合使用外,很少单独使用。

    youdao

  • Technically, a rare situation occurs in which you could get into trouble using xargs.

    从技术上讲使用xargs很少遇到麻烦

    youdao

  • Compared to what you already learned about using xargs, there are several differences.

    前面学习xargs命令相比,它几个不同之处

    youdao

  • Use the xargs tool as a filter for making good use of output culled from the find command.

    使用xargs工具作为筛选器充分利用find命令挑选输出

    youdao

  • However, when xargs builds the command, it will pass as many parameters at once as it possibly can.

    不过xargs构建命令时,传递尽可能参数

    youdao

  • Listing 16 shows one way you might pass a directory listing through xargs to a command such as grep.

    清单16显示了一种通过xargs目录清单传递命令(比如grep)的方法

    youdao

  • By default, xargs delimits input with a space (or newline) to produce a list of files to operate on.

    缺省情况下,xargs将使用空格(或者换行符)对输入字符串进行划分,以便产生可以进行操作一个文件列表

    youdao

  • The xargs command reads standard input and then builds and executes commands with the input as parameters.

    xargs命令读取标准输入然后使用参数作为输入构建执行命令

    youdao

  • For instance, the command pkill -9 -u strike ZSH is the equivalent of pgrep -u strike ZSH | xargs kill -9.

    例如命令pkill -9 -ustrike zshpgrep - ustrike z sh |xargs kill - 9等效。

    youdao

  • Wherever the replacement string occurs in the command you ask xargs to execute, it will be replaced by an argument.

    如果xargs将要执行命令包含有替换字符串那么使用参数替换它。

    youdao

  • If you run find on such a batch of files and pass the list of results to xargs, the Spaces in the file names cause errors.

    如果大量文件运行find命令,并且结果列表传递xargs,那么文件名中的空格会导致错误

    youdao

  • Although our examples have used simple text files for illustration, you will seldom want to use xargs with input like this.

    尽管我们例子为了便于演示使用简单文本文件很少看到包含这样的输入xargs

    youdao

  • Now we will look at the -exec option of find, which has similar functionality to using find and piping the output to xargs.

    现在我们一下find命令- exec选项功能类似于使用find通过管道输出指向xargs

    youdao

  • xargs consumes the filenames from find and runs grep -l repeatedly to process every file, no matter how many files are named.

    xargs 接收来自find文件名重复运行grep-l处理每个文件,而不论多少文件

    youdao

  • In Listing 17 we first copy text1 to "text 1" and then show some ways of using a list of file names containing blanks with xargs.

    清单17中,我们首先将text1复制text1”,然后显示一些xargs命令中使用包含空格文件名列表方法

    youdao

  • A better solution, when available, is the -0 option of xargs, so that the null character (\ 0) is used to delimit input arguments.

    另外一种更好解决办法使用xargs的-0选项从而使用null字符串(\ 0)分隔输入参数。

    youdao

  • For instance, xargs takes not records but names of files as input, and all of the actual processing is done by some other program.

    例如xargs不是接受记录而是接受文件名作为输入并且所有实际处理其他程序完成的。

    youdao

  • You can also use the -l option of xargs to have it treat lines as arguments rather than the default of individual blank-delimited tokens.

    可以使用xargs- l选项让命令当作参数看待,不是默认以单个空格分隔的标记。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定