Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6997219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:15:22+00:00 2026-05-27T20:15:22+00:00

Below is my sample data.MY environment is centos and I have run this command

  • 0

Below is my sample data.MY environment is centos and I have run this command to make all into a single space sed ‘s/ */\ /g’ but unfortunately the spaces are still not uniform. Any solution?

308589422           3.10882 101.54966            23           0              215         0.9          2011-08-01 00:00:00        1              00402020F028    00                000         0              00           109.6     13033    4D           \N                           \N           \N           \N           \N           \N
308590571           5.00517 102.22741            20           0              340         0              2011-08-01 00:00:00        1              00000000             27.3                012         0              04.0        154856  BB1012                 \N                           \N           \N           01           0100       0
308596673           2.94121 101.76445            29           0              62           0              2011-08-01 00:00:00        1              00000000             25.4                000         0              04.1        56870.5 AB0569                 \N                           \N           \N           02           0000       F
308596708           3.99147 101.05772            15           0              105         0              2011-08-01 00:00:00        1              00000000             12.6                01B         0              04.1        42562.9 AB0829                 \N                           \N           \N           02           0000       F
308589424           5.4142   100.55539            26           0              126         1              2011-08-01 00:00:01        1              01000028F820    57                3FF         0              F5           1082.31 13276    75           \N                           \N           \N           \N           \N           \N
308589482           4.95754 102.07095            3              96           235         0              2011-08-01 00:00:01        1              00000000             27.0                000         0              04.1        10278.9 BB1788                 \N                           \N           \N           01           0100       F
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:15:22+00:00Added an answer on May 27, 2026 at 8:15 pm

    i would recommend sed ‘s/\s+/ /g’ (\s+ matching any repeatable whitespace , not only space char)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a python script which outputs lots of data, sample is as below.
In the below code sample, what does {0:X2} mean? This is from the reflection
I have a IObservable [named rows in the sample below] from Reactive extensions framework
I've been learning C#, and I'm trying to understand lambdas. In this sample below,
Below I have written a sample program that I have written to learn about
I have data that always looks something like this: alt text http://michaelfogleman.com/static/images/chart.png I need
The below sample data has a cumulative size for each entry. I am trying
I have a web service that returns a raw string of JSON data (sample
I have implemented background worker class something similar to below sample and I want
This is the sample data receiving to the php script [{id:1,due_date:2011-09-03,due_amount:48279.00,wo_interest:45980.00}, {id:2,due_date:2011-10-03,due_amount:48279.00,wo_interest:45980.00}] and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.