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

```
Use `generate_series` if your sequence is increasing linearly

```
select max(c1) from t1    
join generate_series(1, 1000) ids on t1.id = ids
where t1.c2 = something

```