The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
remove spaces btw
.
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 spaces btw
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
05-15-2008
tjmannonline
Registered User
Join Date: Apr 2008
Posts: 91
remove spaces btw
filename contains:
123 4
1234 5
12345 689
i want result:
1234
12345
12345679
cat filename | awk '{print $1, $2, $3}' will get my result, but too many $$s.
sed
-e 's/[ ]//g' filename will take care one space, [ ] will take 2 spaces.
is it a short way to do this ?
tjmannonline
View Public Profile
Find all posts by tjmannonline
Find tjmannonline's past nominations received
Find tjmannonline's present nominations given