Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Location
    Timbaktu
    Posts
    185

    Unanswered: passing * in unix

    I need to pass "select * from sysusers" string to one of the parameter in the unix command prompt.
    When I do that, it start showing me all the files under the directory.

    What is the best way to pass the 'select *' kind of query in unix?

  2. #2
    Join Date
    Jan 2004
    Location
    Bordeaux, France
    Posts
    320
    You have the choice :
    Code:
    the_script 'select *'
    the_script "select *"
    the_script select '*'
    the script select \*
    in your script, when you use the parameter enclose it within double quotes:
    Code:
    echo "$*"   # display : select *
    echo  $*     # display : select list of files
    Jean-Pierre.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •