xargs

xargs

April 25, 2022 | permanent

Summary #

wiki (eXteneded ARGumentS) Some commands such as grep and awk can take input either as command-line arguments or from the standard input(using pipe). However, others such as cp and echo can only take input as arguments, which is why xargs is necessary.

# applies the cat command to standard input arguments passed thourgh pipe from previous commands
find -name "*.ts" | grep "users*" | xargs cat


No notes link to this note

Go to random page

Previous Next