$ find to/path/ -mindepth 1 -maxdepth 1 | grep -o '\[[0-9]*\]' | grep -o '[0-9]*' | sed 's/^/https:\/\/example.com\//g' | xargs -n 1 ./download.sh
폴더 이름 형식: foobar123 [1234]
필요한 정보: 대괄호 안 UID
필요한 형식: https://example.com/UID
find to/path/ -mindepth 1 -maxdepth 1
foobar123 [1234]
foobar456 [4567]
...
grep -o '\[[0-9]*\]'
[1234]
[4567]
...
grep -o '[0-9]*'
1234
4567
...
sed 's/^/https:\/\/example.com\//g'
https://example.com/1234
https://example.com/4567
...
./download.sh https://example.com/1234
./download.sh https://example.com/4567
...
TODO: sed, awk 등 이용해서 grep 파이프라인 단계 줄여보기