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 3337518
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:15:43+00:00 2026-05-18T00:15:43+00:00

I have a file in the format, where each line has double numbers seperated

  • 0

I have a file in the format, where each line has double numbers seperated by spaces, e.g.:

1 -0.5 0.567 0.123 

What is the correct way to find files not in this format? I’ve tried:

[^0123456789\.\-\s]

But it did not work, any help?

  • 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-18T00:15:44+00:00Added an answer on May 18, 2026 at 12:15 am

    The following works for me:

    > grep '[^0123456789\. \-]' *
    

    But note that this method will not notify you of formatting errors. For example:

    1 -1.0.4 .012
    

    is not the same format as what you specified but will not be matched.

    EDIT: It looks like you can use the [:space:] character class as well.

    > grep '[^0123456789\.[:space:]\-]' *
    

    EDIT: And following that same logic, you can use the [:digit:] character class.

    > grep '[^[:digit:]\.[:space:]\-]' *
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi line text file where each line has the format .....
I have the following format. Each line has two integers and the file is
I have a CSV file. Each line is made up of the same format
I have a file that has one entry per line. Each line has the
I have log file of multi threaded application. Each line has a well know
I'm trying to create a file which has the following structure: - Each line
I have text in the form of separate lines, where each line has CSV-like
I have a file that has over 200 lines in this format: name old_id
I have a file format I need to be able to show in explorer
I have an XML file format that contains a structure of questions: <question id=q101>

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.