Remove those entries that have an error of “Permission Denied” :
find /opt -name dcm 2>/dev/null
Filter the output of a program and redirect the filtered result into a file:
./bin/programA -i ... -o ... 2>&1 | grep "keywords" > a.txt
A blog about coding
Remove those entries that have an error of “Permission Denied” :
find /opt -name dcm 2>/dev/null
Filter the output of a program and redirect the filtered result into a file:
./bin/programA -i ... -o ... 2>&1 | grep "keywords" > a.txt