$ find . -name '*.dat' -print | wc -l | sort -n
-v
flag to grep inverts pattern matching, so that only lines which
do not match the pattern are printed. Given that, which of the following
commands will find all files in data/chem/pdb
whose names end in ose.dat
(e.g., sucrose.dat
or maltose.dat
), but do not contain the string temp
?1. $ find data/chem/pdb -name '*.pdb' -print | grep ose | grep -v temp
2. $ find data/chem/pdb -name ose.pdb -print | grep -v temp
3. $ grep -v temp $(find data/chem/pdb -name '*ose.pdb' -print)
4. None of the above.