Search for command with wildcard

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite












I did some searches, but unfortunately my question was never answered. The closest question to mine is this: Search for bash command



What I need: A command to search for installed commands using wildcards. Let's say I want to unmount something but forgot the command. I know it contains "mount". So I would do something like this:



searchfor *mount*


To find that unmount is the command I need. I know man -k or yum whatprovides. But that's not what I'm looking for. I want to search for all installed commands (that can be found in the directories provided by the $PATH variable).







share|improve this question






















  • A bit more clarity is needed. Do you want to search for commands installed via .rpm packages or shell builtins? If so, apropos will do that and you don't need wildcards.
    – Nasir Riley
    Apr 1 at 19:29











  • Commands installed by yum (CentOS) or apt-get (ubuntu). Okay, apropos is very close to my needs but not 100% what I asked for. Thanks anyway!
    – Daniel Hoop
    Apr 1 at 19:42















up vote
4
down vote

favorite












I did some searches, but unfortunately my question was never answered. The closest question to mine is this: Search for bash command



What I need: A command to search for installed commands using wildcards. Let's say I want to unmount something but forgot the command. I know it contains "mount". So I would do something like this:



searchfor *mount*


To find that unmount is the command I need. I know man -k or yum whatprovides. But that's not what I'm looking for. I want to search for all installed commands (that can be found in the directories provided by the $PATH variable).







share|improve this question






















  • A bit more clarity is needed. Do you want to search for commands installed via .rpm packages or shell builtins? If so, apropos will do that and you don't need wildcards.
    – Nasir Riley
    Apr 1 at 19:29











  • Commands installed by yum (CentOS) or apt-get (ubuntu). Okay, apropos is very close to my needs but not 100% what I asked for. Thanks anyway!
    – Daniel Hoop
    Apr 1 at 19:42













up vote
4
down vote

favorite









up vote
4
down vote

favorite











I did some searches, but unfortunately my question was never answered. The closest question to mine is this: Search for bash command



What I need: A command to search for installed commands using wildcards. Let's say I want to unmount something but forgot the command. I know it contains "mount". So I would do something like this:



searchfor *mount*


To find that unmount is the command I need. I know man -k or yum whatprovides. But that's not what I'm looking for. I want to search for all installed commands (that can be found in the directories provided by the $PATH variable).







share|improve this question














I did some searches, but unfortunately my question was never answered. The closest question to mine is this: Search for bash command



What I need: A command to search for installed commands using wildcards. Let's say I want to unmount something but forgot the command. I know it contains "mount". So I would do something like this:



searchfor *mount*


To find that unmount is the command I need. I know man -k or yum whatprovides. But that's not what I'm looking for. I want to search for all installed commands (that can be found in the directories provided by the $PATH variable).









share|improve this question













share|improve this question




share|improve this question








edited Apr 2 at 9:17

























asked Apr 1 at 19:17









Daniel Hoop

233




233











  • A bit more clarity is needed. Do you want to search for commands installed via .rpm packages or shell builtins? If so, apropos will do that and you don't need wildcards.
    – Nasir Riley
    Apr 1 at 19:29











  • Commands installed by yum (CentOS) or apt-get (ubuntu). Okay, apropos is very close to my needs but not 100% what I asked for. Thanks anyway!
    – Daniel Hoop
    Apr 1 at 19:42

















  • A bit more clarity is needed. Do you want to search for commands installed via .rpm packages or shell builtins? If so, apropos will do that and you don't need wildcards.
    – Nasir Riley
    Apr 1 at 19:29











  • Commands installed by yum (CentOS) or apt-get (ubuntu). Okay, apropos is very close to my needs but not 100% what I asked for. Thanks anyway!
    – Daniel Hoop
    Apr 1 at 19:42
















A bit more clarity is needed. Do you want to search for commands installed via .rpm packages or shell builtins? If so, apropos will do that and you don't need wildcards.
– Nasir Riley
Apr 1 at 19:29





A bit more clarity is needed. Do you want to search for commands installed via .rpm packages or shell builtins? If so, apropos will do that and you don't need wildcards.
– Nasir Riley
Apr 1 at 19:29













Commands installed by yum (CentOS) or apt-get (ubuntu). Okay, apropos is very close to my needs but not 100% what I asked for. Thanks anyway!
– Daniel Hoop
Apr 1 at 19:42





Commands installed by yum (CentOS) or apt-get (ubuntu). Okay, apropos is very close to my needs but not 100% what I asked for. Thanks anyway!
– Daniel Hoop
Apr 1 at 19:42











4 Answers
4






active

oldest

votes

















up vote
10
down vote



accepted










My favorite way is to use compgen -c. For example, to find all
commands that contain mount:



$ compgen -c | grep mount
gvfs-mount
mmount
ideviceimagemounter
grub-mount
humount
hmount
umount
mountpoint
mount
fusermount
umount
mount.ntfs
mount.lowntfs-3g
mount.cifs
umount.udisks
mount.nfs
umount.nfs
mount
mount.ntfs-3g
mount.fuse
showmount
rpc.mountd
mountesp
umount.udisks2
mountstats
automount


What's good about compgen -c is that it also finds aliases, user functions and Bash built-in commands, for example:



$ alias aoeuidhtn='echo hi'
$ compgen -c | grep aoeuidhtn
aoeuidhtn
$ my-great-function() printf "Inside great function()n";
$ compgen -c | grep great
my-great-function
$ compgen -c | grep '^cd$'
cd


Also, compgen is a part of Bash, so it's always available. As described by help compgen:




Display possible completions depending on the options.



Intended to be used from within a shell function generating possible
completions.  If the optional WORD argument is supplied, matches against
WORD are generated.



Exit Status:

Returns success unless an invalid option is supplied or an error occurs.







share|improve this answer


















  • 1




    Great, thanks! That's exactely what I was looking for. P.S. Thanks also for all the other answers. You guys are amazing! :-)
    – Daniel Hoop
    Apr 1 at 20:04







  • 1




    grep is a great tool, and it certainly can be useful in conjunction with compgen -c — for example, in the case of compgen -c | grep mount — but read the help text. If you know the beginning of the command name, you can say compgen -c aoeuidhtn or compgen -c aoeui.
    – Scott
    Apr 2 at 5:52










  • When using the Z shell, you can use analogously hash | grep command, where hash prints the command hash table, which holds all executables inside $PATH.
    – mpy
    Apr 2 at 10:59

















up vote
2
down vote













#! /bin/bash
s=$1 # e.g. mount
IFS=:
for p in $PATH ; do
ls "$p/"*"$s"* 2>/dev/null
done


Setting $IFS to : makes the for correctly iterate over the members of $PATH. Redirecting stderr to /dev/null hides error messages for directories that contain no matches.






share|improve this answer



























    up vote
    1
    down vote













    It can be done in many different ways, look up in $PATH paths, use locate command etc..



     find $(echo $PATH|tr ':' ' ') -maxdepth 1 -name '*mount*' 





    share|improve this answer


















    • 3




      with -maxdepth 1
      – Hauke Laging
      Apr 1 at 20:18










    • And -mindepth 1
      – wjandrea
      Apr 2 at 4:49










    • If any of the dirs in your PATH are symlinks, you need to use find -H
      – wjandrea
      Apr 2 at 5:13

















    up vote
    0
    down vote













    This is based choroba's answer, but only uses Bash features (written for GNU Bash 4.3.11). It returns success if any matches are found, failure otherwise.



    #!/bin/bash
    shopt -s nullglob
    s="$1:?" # Error if argument is missing or null.
    exit=1 # Return failure unless changed.
    IFS=:
    for p in $PATH; do
    for f in "$p/"*"$s"*; do
    if [[ -f $f ]]; then
    echo "$f"
    exit=0 # Return success since match found.
    fi
    done
    done
    exit $exit





    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434884%2fsearch-for-command-with-wildcard%23new-answer', 'question_page');

      );

      Post as a guest






























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      10
      down vote



      accepted










      My favorite way is to use compgen -c. For example, to find all
      commands that contain mount:



      $ compgen -c | grep mount
      gvfs-mount
      mmount
      ideviceimagemounter
      grub-mount
      humount
      hmount
      umount
      mountpoint
      mount
      fusermount
      umount
      mount.ntfs
      mount.lowntfs-3g
      mount.cifs
      umount.udisks
      mount.nfs
      umount.nfs
      mount
      mount.ntfs-3g
      mount.fuse
      showmount
      rpc.mountd
      mountesp
      umount.udisks2
      mountstats
      automount


      What's good about compgen -c is that it also finds aliases, user functions and Bash built-in commands, for example:



      $ alias aoeuidhtn='echo hi'
      $ compgen -c | grep aoeuidhtn
      aoeuidhtn
      $ my-great-function() printf "Inside great function()n";
      $ compgen -c | grep great
      my-great-function
      $ compgen -c | grep '^cd$'
      cd


      Also, compgen is a part of Bash, so it's always available. As described by help compgen:




      Display possible completions depending on the options.



      Intended to be used from within a shell function generating possible
      completions.  If the optional WORD argument is supplied, matches against
      WORD are generated.



      Exit Status:

      Returns success unless an invalid option is supplied or an error occurs.







      share|improve this answer


















      • 1




        Great, thanks! That's exactely what I was looking for. P.S. Thanks also for all the other answers. You guys are amazing! :-)
        – Daniel Hoop
        Apr 1 at 20:04







      • 1




        grep is a great tool, and it certainly can be useful in conjunction with compgen -c — for example, in the case of compgen -c | grep mount — but read the help text. If you know the beginning of the command name, you can say compgen -c aoeuidhtn or compgen -c aoeui.
        – Scott
        Apr 2 at 5:52










      • When using the Z shell, you can use analogously hash | grep command, where hash prints the command hash table, which holds all executables inside $PATH.
        – mpy
        Apr 2 at 10:59














      up vote
      10
      down vote



      accepted










      My favorite way is to use compgen -c. For example, to find all
      commands that contain mount:



      $ compgen -c | grep mount
      gvfs-mount
      mmount
      ideviceimagemounter
      grub-mount
      humount
      hmount
      umount
      mountpoint
      mount
      fusermount
      umount
      mount.ntfs
      mount.lowntfs-3g
      mount.cifs
      umount.udisks
      mount.nfs
      umount.nfs
      mount
      mount.ntfs-3g
      mount.fuse
      showmount
      rpc.mountd
      mountesp
      umount.udisks2
      mountstats
      automount


      What's good about compgen -c is that it also finds aliases, user functions and Bash built-in commands, for example:



      $ alias aoeuidhtn='echo hi'
      $ compgen -c | grep aoeuidhtn
      aoeuidhtn
      $ my-great-function() printf "Inside great function()n";
      $ compgen -c | grep great
      my-great-function
      $ compgen -c | grep '^cd$'
      cd


      Also, compgen is a part of Bash, so it's always available. As described by help compgen:




      Display possible completions depending on the options.



      Intended to be used from within a shell function generating possible
      completions.  If the optional WORD argument is supplied, matches against
      WORD are generated.



      Exit Status:

      Returns success unless an invalid option is supplied or an error occurs.







      share|improve this answer


















      • 1




        Great, thanks! That's exactely what I was looking for. P.S. Thanks also for all the other answers. You guys are amazing! :-)
        – Daniel Hoop
        Apr 1 at 20:04







      • 1




        grep is a great tool, and it certainly can be useful in conjunction with compgen -c — for example, in the case of compgen -c | grep mount — but read the help text. If you know the beginning of the command name, you can say compgen -c aoeuidhtn or compgen -c aoeui.
        – Scott
        Apr 2 at 5:52










      • When using the Z shell, you can use analogously hash | grep command, where hash prints the command hash table, which holds all executables inside $PATH.
        – mpy
        Apr 2 at 10:59












      up vote
      10
      down vote



      accepted







      up vote
      10
      down vote



      accepted






      My favorite way is to use compgen -c. For example, to find all
      commands that contain mount:



      $ compgen -c | grep mount
      gvfs-mount
      mmount
      ideviceimagemounter
      grub-mount
      humount
      hmount
      umount
      mountpoint
      mount
      fusermount
      umount
      mount.ntfs
      mount.lowntfs-3g
      mount.cifs
      umount.udisks
      mount.nfs
      umount.nfs
      mount
      mount.ntfs-3g
      mount.fuse
      showmount
      rpc.mountd
      mountesp
      umount.udisks2
      mountstats
      automount


      What's good about compgen -c is that it also finds aliases, user functions and Bash built-in commands, for example:



      $ alias aoeuidhtn='echo hi'
      $ compgen -c | grep aoeuidhtn
      aoeuidhtn
      $ my-great-function() printf "Inside great function()n";
      $ compgen -c | grep great
      my-great-function
      $ compgen -c | grep '^cd$'
      cd


      Also, compgen is a part of Bash, so it's always available. As described by help compgen:




      Display possible completions depending on the options.



      Intended to be used from within a shell function generating possible
      completions.  If the optional WORD argument is supplied, matches against
      WORD are generated.



      Exit Status:

      Returns success unless an invalid option is supplied or an error occurs.







      share|improve this answer














      My favorite way is to use compgen -c. For example, to find all
      commands that contain mount:



      $ compgen -c | grep mount
      gvfs-mount
      mmount
      ideviceimagemounter
      grub-mount
      humount
      hmount
      umount
      mountpoint
      mount
      fusermount
      umount
      mount.ntfs
      mount.lowntfs-3g
      mount.cifs
      umount.udisks
      mount.nfs
      umount.nfs
      mount
      mount.ntfs-3g
      mount.fuse
      showmount
      rpc.mountd
      mountesp
      umount.udisks2
      mountstats
      automount


      What's good about compgen -c is that it also finds aliases, user functions and Bash built-in commands, for example:



      $ alias aoeuidhtn='echo hi'
      $ compgen -c | grep aoeuidhtn
      aoeuidhtn
      $ my-great-function() printf "Inside great function()n";
      $ compgen -c | grep great
      my-great-function
      $ compgen -c | grep '^cd$'
      cd


      Also, compgen is a part of Bash, so it's always available. As described by help compgen:




      Display possible completions depending on the options.



      Intended to be used from within a shell function generating possible
      completions.  If the optional WORD argument is supplied, matches against
      WORD are generated.



      Exit Status:

      Returns success unless an invalid option is supplied or an error occurs.








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Apr 2 at 5:42









      Scott

      6,24332347




      6,24332347










      answered Apr 1 at 19:54









      Arkadiusz Drabczyk

      7,18521532




      7,18521532







      • 1




        Great, thanks! That's exactely what I was looking for. P.S. Thanks also for all the other answers. You guys are amazing! :-)
        – Daniel Hoop
        Apr 1 at 20:04







      • 1




        grep is a great tool, and it certainly can be useful in conjunction with compgen -c — for example, in the case of compgen -c | grep mount — but read the help text. If you know the beginning of the command name, you can say compgen -c aoeuidhtn or compgen -c aoeui.
        – Scott
        Apr 2 at 5:52










      • When using the Z shell, you can use analogously hash | grep command, where hash prints the command hash table, which holds all executables inside $PATH.
        – mpy
        Apr 2 at 10:59












      • 1




        Great, thanks! That's exactely what I was looking for. P.S. Thanks also for all the other answers. You guys are amazing! :-)
        – Daniel Hoop
        Apr 1 at 20:04







      • 1




        grep is a great tool, and it certainly can be useful in conjunction with compgen -c — for example, in the case of compgen -c | grep mount — but read the help text. If you know the beginning of the command name, you can say compgen -c aoeuidhtn or compgen -c aoeui.
        – Scott
        Apr 2 at 5:52










      • When using the Z shell, you can use analogously hash | grep command, where hash prints the command hash table, which holds all executables inside $PATH.
        – mpy
        Apr 2 at 10:59







      1




      1




      Great, thanks! That's exactely what I was looking for. P.S. Thanks also for all the other answers. You guys are amazing! :-)
      – Daniel Hoop
      Apr 1 at 20:04





      Great, thanks! That's exactely what I was looking for. P.S. Thanks also for all the other answers. You guys are amazing! :-)
      – Daniel Hoop
      Apr 1 at 20:04





      1




      1




      grep is a great tool, and it certainly can be useful in conjunction with compgen -c — for example, in the case of compgen -c | grep mount — but read the help text. If you know the beginning of the command name, you can say compgen -c aoeuidhtn or compgen -c aoeui.
      – Scott
      Apr 2 at 5:52




      grep is a great tool, and it certainly can be useful in conjunction with compgen -c — for example, in the case of compgen -c | grep mount — but read the help text. If you know the beginning of the command name, you can say compgen -c aoeuidhtn or compgen -c aoeui.
      – Scott
      Apr 2 at 5:52












      When using the Z shell, you can use analogously hash | grep command, where hash prints the command hash table, which holds all executables inside $PATH.
      – mpy
      Apr 2 at 10:59




      When using the Z shell, you can use analogously hash | grep command, where hash prints the command hash table, which holds all executables inside $PATH.
      – mpy
      Apr 2 at 10:59












      up vote
      2
      down vote













      #! /bin/bash
      s=$1 # e.g. mount
      IFS=:
      for p in $PATH ; do
      ls "$p/"*"$s"* 2>/dev/null
      done


      Setting $IFS to : makes the for correctly iterate over the members of $PATH. Redirecting stderr to /dev/null hides error messages for directories that contain no matches.






      share|improve this answer
























        up vote
        2
        down vote













        #! /bin/bash
        s=$1 # e.g. mount
        IFS=:
        for p in $PATH ; do
        ls "$p/"*"$s"* 2>/dev/null
        done


        Setting $IFS to : makes the for correctly iterate over the members of $PATH. Redirecting stderr to /dev/null hides error messages for directories that contain no matches.






        share|improve this answer






















          up vote
          2
          down vote










          up vote
          2
          down vote









          #! /bin/bash
          s=$1 # e.g. mount
          IFS=:
          for p in $PATH ; do
          ls "$p/"*"$s"* 2>/dev/null
          done


          Setting $IFS to : makes the for correctly iterate over the members of $PATH. Redirecting stderr to /dev/null hides error messages for directories that contain no matches.






          share|improve this answer












          #! /bin/bash
          s=$1 # e.g. mount
          IFS=:
          for p in $PATH ; do
          ls "$p/"*"$s"* 2>/dev/null
          done


          Setting $IFS to : makes the for correctly iterate over the members of $PATH. Redirecting stderr to /dev/null hides error messages for directories that contain no matches.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 1 at 19:25









          choroba

          24.3k33967




          24.3k33967




















              up vote
              1
              down vote













              It can be done in many different ways, look up in $PATH paths, use locate command etc..



               find $(echo $PATH|tr ':' ' ') -maxdepth 1 -name '*mount*' 





              share|improve this answer


















              • 3




                with -maxdepth 1
                – Hauke Laging
                Apr 1 at 20:18










              • And -mindepth 1
                – wjandrea
                Apr 2 at 4:49










              • If any of the dirs in your PATH are symlinks, you need to use find -H
                – wjandrea
                Apr 2 at 5:13














              up vote
              1
              down vote













              It can be done in many different ways, look up in $PATH paths, use locate command etc..



               find $(echo $PATH|tr ':' ' ') -maxdepth 1 -name '*mount*' 





              share|improve this answer


















              • 3




                with -maxdepth 1
                – Hauke Laging
                Apr 1 at 20:18










              • And -mindepth 1
                – wjandrea
                Apr 2 at 4:49










              • If any of the dirs in your PATH are symlinks, you need to use find -H
                – wjandrea
                Apr 2 at 5:13












              up vote
              1
              down vote










              up vote
              1
              down vote









              It can be done in many different ways, look up in $PATH paths, use locate command etc..



               find $(echo $PATH|tr ':' ' ') -maxdepth 1 -name '*mount*' 





              share|improve this answer














              It can be done in many different ways, look up in $PATH paths, use locate command etc..



               find $(echo $PATH|tr ':' ' ') -maxdepth 1 -name '*mount*' 






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 5 at 10:20

























              answered Apr 1 at 19:41









              Bharat

              3058




              3058







              • 3




                with -maxdepth 1
                – Hauke Laging
                Apr 1 at 20:18










              • And -mindepth 1
                – wjandrea
                Apr 2 at 4:49










              • If any of the dirs in your PATH are symlinks, you need to use find -H
                – wjandrea
                Apr 2 at 5:13












              • 3




                with -maxdepth 1
                – Hauke Laging
                Apr 1 at 20:18










              • And -mindepth 1
                – wjandrea
                Apr 2 at 4:49










              • If any of the dirs in your PATH are symlinks, you need to use find -H
                – wjandrea
                Apr 2 at 5:13







              3




              3




              with -maxdepth 1
              – Hauke Laging
              Apr 1 at 20:18




              with -maxdepth 1
              – Hauke Laging
              Apr 1 at 20:18












              And -mindepth 1
              – wjandrea
              Apr 2 at 4:49




              And -mindepth 1
              – wjandrea
              Apr 2 at 4:49












              If any of the dirs in your PATH are symlinks, you need to use find -H
              – wjandrea
              Apr 2 at 5:13




              If any of the dirs in your PATH are symlinks, you need to use find -H
              – wjandrea
              Apr 2 at 5:13










              up vote
              0
              down vote













              This is based choroba's answer, but only uses Bash features (written for GNU Bash 4.3.11). It returns success if any matches are found, failure otherwise.



              #!/bin/bash
              shopt -s nullglob
              s="$1:?" # Error if argument is missing or null.
              exit=1 # Return failure unless changed.
              IFS=:
              for p in $PATH; do
              for f in "$p/"*"$s"*; do
              if [[ -f $f ]]; then
              echo "$f"
              exit=0 # Return success since match found.
              fi
              done
              done
              exit $exit





              share|improve this answer
























                up vote
                0
                down vote













                This is based choroba's answer, but only uses Bash features (written for GNU Bash 4.3.11). It returns success if any matches are found, failure otherwise.



                #!/bin/bash
                shopt -s nullglob
                s="$1:?" # Error if argument is missing or null.
                exit=1 # Return failure unless changed.
                IFS=:
                for p in $PATH; do
                for f in "$p/"*"$s"*; do
                if [[ -f $f ]]; then
                echo "$f"
                exit=0 # Return success since match found.
                fi
                done
                done
                exit $exit





                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  This is based choroba's answer, but only uses Bash features (written for GNU Bash 4.3.11). It returns success if any matches are found, failure otherwise.



                  #!/bin/bash
                  shopt -s nullglob
                  s="$1:?" # Error if argument is missing or null.
                  exit=1 # Return failure unless changed.
                  IFS=:
                  for p in $PATH; do
                  for f in "$p/"*"$s"*; do
                  if [[ -f $f ]]; then
                  echo "$f"
                  exit=0 # Return success since match found.
                  fi
                  done
                  done
                  exit $exit





                  share|improve this answer












                  This is based choroba's answer, but only uses Bash features (written for GNU Bash 4.3.11). It returns success if any matches are found, failure otherwise.



                  #!/bin/bash
                  shopt -s nullglob
                  s="$1:?" # Error if argument is missing or null.
                  exit=1 # Return failure unless changed.
                  IFS=:
                  for p in $PATH; do
                  for f in "$p/"*"$s"*; do
                  if [[ -f $f ]]; then
                  echo "$f"
                  exit=0 # Return success since match found.
                  fi
                  done
                  done
                  exit $exit






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 2 at 4:48









                  wjandrea

                  446312




                  446312






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434884%2fsearch-for-command-with-wildcard%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay