7 lines
104 B
Bash
7 lines
104 B
Bash
map() {
|
|
map_command=$1
|
|
shift
|
|
for i do "$map_command" "$i"; done
|
|
}
|
|
list=1:2:3
|
|
(IFS=:; map echo $list)
|