I am new to sed and am having some troubles making it work.
What I want is this:
abc.ztx.com. A 132.123.12.44 ---> abc.ztx.com
I used the below pattern, but doesn't seem to work:
echo "abc.ztx.com. A 132.123.12.44" | sed 's/\.\s.+//g'
I verified the regex using regex101.com and pattern, \.\s.+ matches the part . A 132.123.12.44 perfectly. Why is it not working with sed.
Appreciate your help. Thank you.
sed? This is a perfect job forcut, which is what I'd use here. If you aren't stuck with sed only, let me know and I'll post acutanswer. – ron rothman Mar 18 '20 at 00:37