代码脚本文件中的链接汇聚
#!/bin/bash
## read line from a file
url=()
while read -r line || [ -n "${line}" ]; do
url+=( "$line" )
done < path-to-file
urls0=${url[0]}
urls1=${url[1]}
#!/bin/bash
## read line from a file
url=()
while read -r line || [ -n "${line}" ]; do
url+=( "$line" )
done < path-to-file
urls0=${url[0]}
urls1=${url[1]}