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

  • SEARCH
  • Home
  • 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 7710295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:05:29+00:00 2026-06-01T01:05:29+00:00

I was requested to make a shell script to check for simple mistakes in

  • 0

I was requested to make a shell script to check for simple mistakes in files.
I wanted to find, for each line if

(regex:) “[ ]\t” ever happens.

The problem is that grep is ignoring the \ and is taking “t” as a literal. I also tried writting the characters themselves in a file and asking grep to read it but it didn’t work.
Is there a way to find for the regex ” \t” in files using any of the usual linux tools (like grep)?

I already tried:

grep -E --ignore-case --line-number --with-filename --file="b" file

(b contains: ” “)
and also:

grep -E --ignore-case --line-number --with-filename --regexp=" [\t]" file
  • 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-06-01T01:05:30+00:00Added an answer on June 1, 2026 at 1:05 am

    You can use C-style string $'...'

    grep $'\t' file.txt
    

    Or sed:

    sed -n '/\t/p' file.txt
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a php script to upload lot of files. I am using
I want to make an AJAX call to the server periodically, the server script(PHP)
At work it is requested that I make a program that can broadcast a
I have been requested to make a port of an iOS game for Facebook.
i was requested to make in android a view that groups several items like
I want to use jQuery to make a simple call to my MVC controller.
i'm developing an app that make requests to the Musicbrainz webservice. I read in
For some reason the ajax requests I make on the website I'm working on
I am using Python's xmlrpclib to make requests to an xml-rpc service. Is there
We've sets of webservices and we have to make request on clientside (sending request

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.