update repository
[cmdllinux.git] / bash_n_examples / bash / array / mapfile / arr2.sh
blob6c2c9852ef1a41bacd0d77d75c2287dc0b3b1747
1 #!/usr/bin/env bash
3 main() {
4 local tmp x
5 IFS=: read -r tmp x
6 echo "$tmp $x"
9 main << "EOF"
10 fabric.domain:123
11 routex:1
12 routey:2
13 fabric.domain:321
14 routex:6
15 routey:4
16 EOF
18 #if ...
19 # main "$1" <<-"EOF"
20 # fabric.domain:123
21 # routex:1
22 # routey:2
23 # fabric.domain:321
24 # routex:6
25 # routey:4
26 # EOF
27 #fi