The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 07-31-2008
gugs gugs is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 44
Thanks for that it works. However what is the best way for?

The sed command has helped in extracting the data I want, however, I lose some of formating i.e. spaces in words. It appears that is what is causing the problem. If I convert the data using sed s'/[^a-zA-Z0-9]//g' it gets the data I want. If I convert using s'/[^a-zA-Z0-9<>:]//g' it too gets the data I want. However when I convert the data using s'/[^a-zA-Z0-9<>: ]//g' that's when I hit the problem. So is there a way of subsituting the space with some character, extarct the data I am intrested in and then converting the character back to space?