Splitting unix output Splitting unix output unix unix

Splitting unix output


grep keyword /path/to/file | cut -d= -f2-


Just pipe to cut:

grep keyword /path/to/file | cut -d '=' -f 2


You can avoid the needless pipes:

awk -F= '/keyword/{print $2}' /path/to/file