The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-25-2007
Shell_Life's Avatar
Shell_Life Shell_Life is offline
Registered User
  
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Vino,
Your substitution will replace all instances of '.', including '19.23'.
The Regular Expression ' *' means zero or more instances of space.
In other words, it will consider anything as true, as any non-space
character means zero instances of space.
Also the solution should keep the space after the name.
Here is one possible solution:

Code:
:%s/ \./ NULL/