Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/selfup/fk

Fahrenheit and Kelvin - Cross platform shell commands
https://github.com/selfup/fk

Last synced: about 1 month ago
JSON representation

Fahrenheit and Kelvin - Cross platform shell commands

Awesome Lists containing this project

README

        

# Fahrenheit and Kelvin (fk)

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

Tiny shell commands that work the same everywhere!

```shell
(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
```