Some generic utils that I use on my mac to make my life easier. May be not the best approach out there, but this has grown on me over the years. I initially created this back in the days to use in my Windows XP with batch (and java).
Note: The wildcard(*) expressions might need to enclosed in single quotes to avoid expansion by shell or use noglob
to
avoid expansion
curl -L https://github.com/abeytom/utilbox/releases/download/v0.4/utilbox-linux-amd64.tar.gz \
| tar -xvz && export PATH=$PATH:$(pwd)/utilbox
curl -L https://github.com/abeytom/utilbox/releases/download/v0.4/utilbox-linux-amd64.tar.gz \
| tar -xvz -C $HOME && export PATH=$PATH:$HOME/utilbox
curl -L https://github.com/abeytom/utilbox/releases/download/v0.4/utilbox-osx.tar.gz \
| tar -xvz && export PATH=$PATH:$(pwd)/utilbox
curl -L https://github.com/abeytom/utilbox/releases/download/v0.4/utilbox-osx.tar.gz \
| tar -xvz -C $HOME && export PATH=$PATH:$HOME/utilbox
- Clone this repo to say
~/github/abeytom/utilbox
- Add
~/github/abeytom/utilbox
to the $PATH - Build
cd go && make
- Give exec permissions cmd alias files
chmod +x bk csv ft goexec gw kc kcurl op opf gcart