My input file looks like below:
“true true, rohith Rohith; cold burn, and fact and fact good good?”
Output shoud look like:
Simple sed:
sed
echo "true true, rohith Rohith; cold burn, and fact and fact good good?" | sed -r 's/(\w+) (\1)/\1/g'