The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Remove extra spaces in a line
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Remove extra spaces in a line
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
10-10-2008
jim mcnamara
...@...
Join Date: Feb 2004
Location: NM
Posts: 5,787
Something is not right.....
Code:
sed
's/Message Text : /Message Text : /g'
Note: your example has exactly this text:
'Message Text :'
-- that is what I am using for a pattern. Instead of just running the
sed
on your file make sure the pattern matches what is in the first. Plus are you SURE the white space is not the tab characters? Use this command to see
Code:
od -c myfile
jim mcnamara
View Public Profile
Find all posts by jim mcnamara
Find jim mcnamara's past nominations received
Find jim mcnamara's present nominations given