Hubert
Home
About
Services
Works
Blog
Archive
My
Blog
Latest blog
Using an output of precedent command as an argument of following command
xargs
is a great command that reads streams of data from standard input, then generates and executes command lines
to print all vcf files in specific path
echo `pwd` | cut -d'/' -f1-7 | xargs
-I
{} find {} -name '*.vcf'
to know the number of lines/words/characters in specific file
ls * | xargs
-I
FILE grep -vc '^#' FILE
to count the number of all variants of vcf
ls * | xargs
-I
FILE echo FILE | xargs grep -vc '^#' FILE
홈