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 -->
  #2 (permalink)  
Old 10-28-2003
TioTony's Avatar
TioTony TioTony is offline Forum Advisor  
Bit Pusher
  
 

Join Date: Oct 2001
Location: Southern California
Posts: 332
Are you using a shell script or vi to do this?

For a shell script you could use sed like this:

echo "Amy Reds , 100 , /bin/sh" | sed 's/ //g'

In vi it is very similar

:%s/ //g

This assumes you want to do this to every line of the file and also assumes you have spaces, not tabs or other whitespace.

If you can give more specifics I am sure you will get a more specific answer.