for example
grep 20180906834424 test.log | awk "{print $2}"
the above code will produce a result. How can I use this result as a parameter of grep to re-search the test.log file?
grep 20180906834424 test.log | awk "{print $2}" | xargs grep PATTERN test.log
result, the result of awk is always used as the file name. How can it be regarded as PATTERN?