Skip to main content
1 of 2

this worked for me... thanks

grep -m1 'some-pattern' some-file | sed -n 's/.* //p' | tr -d "\n" | tr -d "\r"