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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:58:30+00:00 2026-05-29T21:58:30+00:00

When I read[command] some lines including character ‘*’ , it seems that ‘*’ will

  • 0

When I read[command] some lines including character '*', it seems that '*' will be looked as a wildcard. whether exsits some solutions leting '*' just be a '*', please!

  • 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-29T21:58:33+00:00Added an answer on May 29, 2026 at 9:58 pm

    If you do not want any of the special file name characters to be used as wildcards then enter the following in your script before the read.

    set -o noglob

    This will prevent the * ? and [] from having special meaning and treat them as normal characters.

    The following example demonstrates the point

    touch 1 2 3
    echo "With wild card expansion"
    echo *
    
    echo "Without wild card expansion"
    set -o noglob
    echo *
    
    And produces the following results
    
    With wild card expansion
    1 2 3 
    Without wild card expansion
    *
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to read command lien argument but it seems there is some
I am doing a command line app that needs to read some files and
I'm going to create some command line tools that make use of some large
Whenever I execute a linux command that outputs multiple lines, I want to perform
I want my Python script to be able to read Unicode command line arguments
I've read about the svn move command but haven't been able to use it
How do I read a char from a user in the command line. I
Is there a standard Linux command i can use to read a file chunk
I have a string with possible command line arguments (using an Read-Eval-Print-Loop program) and
I have this command in a Rails controller open(source) { |s| content = s.read

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.