The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Adding character to spaces in a table
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Adding character to spaces in a table
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-14-2008
Smiling Dragon
Disorganised User
Moon Lander Champion!
Snake Champion!
Join Date: Nov 2007
Location: New Zealand
Posts: 645
A quick solution:
Code:
sed 's/ / -/g'
This won't work fully if the missing items on the end of each line aren't padded with spaces. In that case a slightly cleverer solution will be required
Smiling Dragon
View Public Profile
Find all posts by Smiling Dragon