bash pring first column code example
Example 1: bash get field from line
echo 'The Code Doctor' | cut -d ' ' -f2
Example 2: bash get field from line
echo 'The Code Doctor' | awk '{print $2}'
echo 'The Code Doctor' | cut -d ' ' -f2
echo 'The Code Doctor' | awk '{print $2}'