shelltools is a collection of command line programs run from a shell like Bash (or Powershell in Windows). If you download the repository a compiled version is in the dist directory. The compiled binary matching your computer type and operating system can be copied to a bin directory in your PATH.
Compiled versions are available for Mac OS X (amd64 processor), Linux (amd64), Windows (amd64) and Rapsberry Pi (both ARM6 and ARM7)
- Download shelltools-binary-release.zip from https://github.com/rsdoiel/shelltools/releases/latest
- Open a finder window, find and unzip shelltools-binary-release.zip
- Look in the unziped folder and find dist/macosx-amd64/
- Drag (or copy) findfile, finddir, mergepath, pathparts, etc. to a "bin" directory in your path
- Open and "Terminal" and run
findfile -h
to confirm you were successful
- Download shelltools-binary-release.zip from https://github.com/rsdoiel/shelltools/releases/latest
- Open the file manager find and unzip shelltools-binary-release.zip
- Look in the unziped folder and find dist/windows-amd64/
- Drag (or copy) findfile.exe, finddir.exe, mergepath, pathparts, etc. to a "bin" directory in your path
- Open Bash and and run
findfile -h
to confirm you were successful
- Download shelltools-binary-release.zip from https://github.com/rsdoiel/shelltools/releases/latest
- Find and unzip shelltools-binary-release.zip
- In the unziped directory and find for dist/linux-amd64/
- Copy findfile, finddir, mergepath, pathparts, etc. to a "bin" directory (e.g. cp ~/Downloads/shelltools-binary-release/dist/linux-amd64/* ~/bin/)
- From the shell prompt run
findfile -h
to confirm you were successful
If you are using a Raspberry Pi 2 or later use the ARM7 binary, ARM6 is only for the first generaiton Raspberry Pi.
- Download shelltools-binary-release.zip from https://github.com/rsdoiel/shelltools/releases/latest
- Find and unzip shelltools-binary-release.zip
- In the unziped directory and find for dist/raspberrypi-arm7/
- Copy findfile, finddir, mergepath, pathparts, etc. to a "bin" directory (e.g. cp ~/Downloads/shelltools-binary-release/dist/raspberrypi-arm7/* ~/bin/)
- if you are using an original Raspberry Pi you should copy the ARM6 version instead
- From the shell prompt run
findfile -h
to confirm you were successful
If you have go v1.7 or better installed then should be able to "go get" to install all the shelltools utilities and package. You will need the GOBIN environment variable set. In this example I've set it to $HOME/bin.
export GOBIN=$HOME/bin
go get github.com/rsdoiel/shelltools/...
Or for Windows 10 Powershell (assumes the Windows versions of Go and Git are previously installed)
$Env:GOPATH = "$HOME"
go get github.com/rsdoiel/shelltools/...
or to install from source on Linux/Unix systems
git clone https://github.com/rsdoiel/shelltools src/github.com/rsdoiel/shelltools
cd src/github.com/rsdoiel/shelltools
make
make test
make install
Or for Windows 10 Powershell
$Env:GOBIN = "$HOME\bin"
git clone https://github.com/rsdoiel/shelltools src/github.com/rsdoiel/shelltools
cd src\github.com\rsdoiel\shelltools
go install cmds\csvcols\csvcols.go
go install cmds\finddir\finddir.go
go install cmds\findfile\filefile.go
go install cmds\mergepath\mergepath.go
go install cmds\pathparts\pathparts.go
go install cmds\reldate\reldate.go
go install cmds\timefmt\timefmt.go
go install cmds\urlparse\urlparse.go