Task: Check if the current shell is running within a 'screen' process and print "True" or "False"
Command: pstree -s $$ | grep -q "screen" && echo "True" || echo "False"
Equivalent command: ps -o comm= $(pstree -sp $$ | awk -F '[^0-9]*' '{print $2}') | grep -q 'screen' && echo "True" || echo "False"