Top "Xargs" questions

xargs is a command on Unix and most Unix-like operating systems used to build and execute command lines from standard input.

Getting error "xargs unterminated quote" when tried to print the number of lines in terminal

I want to get the number of lines in my application. I am using this code: find . "(" -name "*.m" -or …

macos xargs
piping seq to printf for number formatting

I'm trying to print the following pattern using printf and seq: 0000 0001 0002 0003 My problem is once I use: seq 0 10 | xargs printf %04…

bash printf xargs seq
bash: xargs passing variable

How can a global script variable be passed to the command of xargs? I tried it this way: TEST=hallo2 …

linux bash variables xargs
Can xargs' default delimiter be changed?

I want the following behavior without having to explicitly specify it with options: xargs -d '\n' Unlike with most …

command-line whitespace xargs
How can I pass all arguments with xargs in middle of command in linux

I want to pass all the files as a single argument on Linux but I am not able to do …

linux xargs
Understanding the UNIX command xargs

I'm pretty much confused on this. Need some clarifications. Example 1 : pgrep string | xargs ps Example 2 : find . | xargs grep whatever From …

unix xargs
Is it possible to pipe the results of FIND to a COPY command CP?

Is it possible to pipe the results of find to a COPY command cp? Like this: find . -iname "*.SomeExt" | cp …

linux shell terminal find xargs
Get argument from pipe

Consider having the results from the pipe: find . Now I would like to access in the second command behind the …

bash pipe xargs
'find' with 'xargs' and 'tar'

I have the following I want to do: find . -maxdepth 6 \( -name \*.tar.gz -o -name bediskmodel -o -name src -o …

find tar xargs
xargs split at newlines not spaces

here is my problem in short $ echo 'for i in $@; do echo arg: $i; done; echo DONE' > /tmp/test.…

shell unix xargs