![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| remove spaces btw | tjmannonline | UNIX for Dummies Questions & Answers | 7 | 05-25-2008 11:35 PM |
| remove duplicated columns | kamel.seg | Shell Programming and Scripting | 6 | 02-21-2008 04:36 AM |
| removing spaces betweent columns | sbasetty | Shell Programming and Scripting | 8 | 01-24-2007 04:21 PM |
| Remove lines with n columns | Krispy | Shell Programming and Scripting | 2 | 11-10-2006 02:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Remove spaces from columns
I have a file with only one field something like this :
213.45 220.65 240.47 345.67 320.45 I want to remove all spaces in between. Is there any unix command for that ?Thanks in advance.. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
If you mean blank lines:
Code:
grep . filename Code:
printf "%s\n" $(<filename) |
|
#3
|
|||
|
|||
|
Quote:
grep . filename worked nicely.. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|