/fk

Fahrenheit and Kelvin - Cross platform shell commands

Primary LanguageGoMIT LicenseMIT

Fahrenheit and Kelvin (fk)

Windows (F), Linux (K), and macOS (C)

Tiny shell commands that work the same everywhere!

(mkdir -p)
selfup@win42 MINGW64 ~/go/src/github.com/selfup/fk (master)
$ fk mkdir foo/bar

(write file)
selfup@win42 MINGW64 ~/go/src/github.com/selfup/fk (master)
$ fk wr foo/bar/example.txt "hello world" 0775

(file exists)
selfup@win42 MINGW64 ~/go/src/github.com/selfup/fk (master)
$ fk fex "foo/bar/example.txt"

(file read)
selfup@win42 MINGW64 ~/go/src/github.com/selfup/fk (master)
$ fk rd "foo/bar/example.txt"
hello world

(list dir contents)
selfup@win42 MINGW64 ~/go/src/github.com/selfup/fk (master)
$ fk ls .
d: .git
f: .gitignore
f: LICENSE
f: README.md
d: foo
f: main.go