howtodelete blank spaces

sry im new to this...another qns..

if i have a line in the normal shell the file is email.scp. it contains a txt file eg hello.txt that contain this infomation.

k@hotmail.com
j@jotm.com

how do i delete away the blank spaces after the k@hotmail.com..i dun wan any blank spaces after the aphabet m of the k@hotmail.com.

thanks..

try this:

sed -e 's/com */com/' infile.txt > outfile.txt

rishi

thanks! :stuck_out_tongue: