I was trying to edit the output of a file using sed. The contents of file are
cat /tmp/Group_RM firstname.lastname@example.org email@example.com
I was trying to get the output as:
cat /tmp/Group_RM t_p@k_p t_m@k_k
I tried the below command but the output looked odd:
cat /tmp/Group_RM | sed 's/./_/g'
____ ___ _______
sed is replacing all characters with underscores. When I tried to replace "_" with ".", sed works perfectly.