dk.salza.liq.tools.cshell

A namespace for shell like utils
in clojure style.

cd

(cd d)

cmd

(cmd & args)
Execute a native command.
Adding :timeout 60 or similar as last command will
add a timeout to the process.

cmdseq

(cmdseq & args)

cp

(cp source-path dest-path)

current-dir

current-process

datetimestamp

(datetimestamp)
Todays date in yyyy-mm-dd-HH-mm-ss format

expand-home

(expand-home s)

file?

(file? path)

flrex

(flrex re s)
Returns sequence of [filepath line] vectors in files matched
by the regular expression.

folder?

(folder? path)

frex

(frex re s)
Takes a sequence of files and filters by given
regular expression match in content

kill-process

(kill-process)

lrex

(lrex re s)
Returns sequence of lines in files matched
by the regular expression.

ls

(ls dir)(ls)
Outputs files and folders in a given
dir into a vector.

lsr

(lsr dir)

mkdir

(mkdir d)

mv

(mv source-path dest-path)

p

(p s)
Prints a sequence in lines.

pathsuggest

(pathsuggest partly)
Given part of a path return
sequence with suggestions.

pp

(pp s)
Prints a sequence line by line.

remote-cmd

(remote-cmd server username password & args)
Executes a command on remote server and returns
the result.

rex

(rex re s)
Takes a sequence and filters by given
regular expression

rm

(rm path)

size

(size s)

today

(today)