6

xargs grep suggestion

view full story
linux-howto

http://unix.stackexchange.com – grep -v "\<Swap" instruments.log | awk '{ idx=index($0, "MasterId="); masterId=substr($0, idx+length("MasterId=")+1); masterId=substr(masterId,1,index(masterId,"L")-3); print masterId; }' | xargs grep rel.log I need to search each of that MasterId/output of awk in rel.log using xargs or something. How can I do that? I appreciate your suggestion. (HowTos)