Skip to main content
deleted 2 characters in body
Source Link
artu-hnrq
  • 317
  • 1
  • 5
  • 16

So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.

So I would like to understand the following:

  1. What does * mean?

  2. How could I display another directory content?
    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

Any related links or examples are welcome.

So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.

So I would like to understand the following:

  1. What does * mean?

  2. How could I display another directory content?
    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

Any related links or examples are welcome.

So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.

So I would like to understand the following:

  1. What does * mean?

  2. How could I display another directory content?
    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

Any related links or examples are welcome.

less intrusive bold text + wildcards tag added
Source Link
Vlastimil Burián
  • 31.3k
  • 66
  • 211
  • 358

So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.

So I would like to understand:

So I would like to understand the following:

  1. What does * mean?

    What does * mean?

  2. How could I display another directory content?

    How could I display another directory content?
    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

Any related linklinks or examples are welcome Thanks everyone!.

So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.

So I would like to understand:

  1. What does * mean?
  2. How could I display another directory content?
    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

Any related link or examples are welcome Thanks everyone!

So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.

So I would like to understand the following:

  1. What does * mean?

  2. How could I display another directory content?
    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

Any related links or examples are welcome.

Source Link
artu-hnrq
  • 317
  • 1
  • 5
  • 16

How to display different directory content with Bash select command?

So far I have found some examples of Bash select function usage with logical constructed options or Asterisk one (i.e select s in *). This last one lists all actual directory content.

So I would like to understand:

  1. What does * mean?
  2. How could I display another directory content?
    (I tried something as opt=$( ls path ) and select s in "$opt[@]", but it fails)

Any related link or examples are welcome Thanks everyone!