We Shall See

  • Home
  • Archives
  • RSS
  • About Me

Bash loop over dict map struct (kind of)

Published on: December 9, 2015

So here's an intersting bash loop construct kind of like looping over
a simple dict, map, or struct.

http://www.linuxjournal.com/content/bash-brace-expansion

$ for d in build_{debian,centos}_{32,64}bit; do echo "${d}"; done
build_debian_32bit
build_debian_64bit
build_centos_32bit
build_centos_64bit
Tweet
Bash loop over left padded numbers ansible install docker on ubuntu trusty 14.04
Copyright © 2015 johndstein. Powered by Logdown | Theme fabric by Pankaj Kumar