eachdo

eachdo executes commands with each multidimensional values


Keywords
cli, shell, exec, loop
License
MIT
Install
nimble install eachdo

Documentation

eachdo

nimble-version nimble-install gh-actions

eachdo executes commands with each multidimensional values.

Usage

$ eachdo / echo % / % 1 2 3
1
2
3

$ eachdo -- / useradd -m -d /home/USER USER / USER hello world foo bar
$ ls -d /home/*
/home/hello
/home/world
/home/foo
/home/bar

$ eachdo -- / echo FIRST LAST / FIRST taro hanako ichiro  / LAST yamada tanaka suzuki
taro yamada
hanako tanaka
ichiro suzuki

$ eachdo --matrix -- / echo FIRST LAST / FIRST taro hanako ichiro  / LAST yamada tanaka suzuki
taro yamada
taro tanaka
taro suzuki
hanako yamada
hanako tanaka
hanako suzuki
ichiro yamada
ichiro tanaka
ichiro suzuki

Installation

$ nimble install eachdo

or

Download from Releases

LICENSE

MIT

Development

Release workflow

GitHub Action runs when you pushed new tags.

$ git tag <new_tag>
$ git push origin <new_tag>

or

$ git push origin --tags

GitHub Action creates a new release and upload your assets.

Release workflows:

image-release-workflow

Details, see release.yml.