Question: When I pass a flag containing `[...]` to my bash script, `getops` gives me an empty string when I try to grab the value with `$OPTARG`.

```
shopt -s nullglob
while getopts ":f:" opt; do
  case $opt in
   f)
      str=$OPTARG
      ;;
  esac
done
echo ${str}

```

Running the script:

```
$ script.sh -f [0.0.0.0]
<blank line>

```

How can I get the original value back inside the script?

Answer: 
You can build a data-set by using an inline `VALUES`, and use aliasing to give that data-set and name and column names.

```
SELECT
    yourData.id, map.b
FROM
    yourData
INNER JOIN
(
  VALUES
    (1,2),
    (2,4),
    (3,8)
)
  map(a,b)
    ON map.a = yourData.a

```
you can try like below

```
 with cte as
    (
    select 1 as col union all
    select 2 union all
    select 3 union all
    select 4 union all
    ---------
    -------
    select 1000
    ) select max(t1.c1) from 
       cte join t1 on cte.col=t1.id where t1.c2=something

```