dk.salza.liq.tools.cshell
A namespace for shell like utils
in clojure style.
cmd
(cmd & args)
Execute a native command.
Adding :timeout 60 or similar as last command will
add a timeout to the process.
cp
(cp source-path dest-path)
datetimestamp
(datetimestamp)
Todays date in yyyy-mm-dd-HH-mm-ss format
expand-home
(expand-home s)
flrex
(flrex re s)
Returns sequence of [filepath line] vectors in files matched
by the regular expression.
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.
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