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.

xargs - if condition and echo {}

I have some files that contain a particular strings. What I want to do is, search a location for the …

bash unix if-statement echo xargs
xargs with multiple commands

In the current directory, I'd like to print the filename and contents in it. I can print filenames or contents …

bash xargs
GNU parallel not working at all

I have been trying to use GNU parallel for some time, but I have never been able to get it …

parallel-processing gnu xargs gnu-parallel
How can I move many files without having Argument list too long?

I am trying to move about 700,000 .jpg files from one directory to another in my Ubuntu server. I tried the …

linux ubuntu xargs mv
Is there a grep equivalent for find's -print0 and xargs's -0 switches?

I often want to write commands like this (in zsh, if it's relevant): find <somebasedirectory> | \ grep stringinfilenamesIwant | \ grep …

bash unix grep find xargs
bash awk first 1st column and 3rd column with everything after

I am working on the following bash script: # contents of dbfake file 1 100% file 1 2 99% file name 2 3 100% file name 3 #!/bin/bash # cat …

bash awk xargs
xargs: String concatenation

zgrep -i XXX XXX | grep -o "RID=[0-9|A-Z]*" | uniq | cut -d "=" -f2 | xargs -0 -I string echo "RequestID="string …

grep xargs
Shell Scripting: Using bash with xargs

I'm trying to write a bash command that will delete all files matching a specific pattern - in this case, …

bash shell find xargs
Is there a way to uninstall multiple packages with pip?

I am attempting to remove all of the installed "pyobjc-framework"-prefixed packages. I have tried the following: % pip freeze | grep …

python pip xargs
Find command with regex for multiple file extension

I was wondering if this is possible in find command. I am trying to find all the specific files with …

regex file sed find xargs