1

perl - Removing dots(".") from the data

view story
linux-howto

http://www.unix.com – Hi Friends, I have a file1 as below file1.txt Code: 100000.||1925-01-10|00:00|1862SHERMA NAVE#1SE.||EVTON|IL|60201||22509.|BDSS|62007|2639.|26670 100001.||1935-01-10|00:00|1862NEW . YRK NO.||EVTON|IL|60201||22509.|BDSS|62007|2639.|26670. 100002.||1965-01-10|00:00|1862 IND . INC,CL .NAVE#1SE.||EVTON|IL|60201||22.509.|BDSS|62007.|2.639.|26670 I am using the below command to remove the dots"." from the file where before "|' Code: #perl -pe 's/\.(?=[|\s])//g' file1.txt   100000||1925-01-10|00:00|1862SHERMA NAVE#1SE||EVTON|IL|60201||22509|BDSS|62007| (HowTos)