toolshed v0.2.4 Toolshed.Unix
Helpers for when your fingers are too used to typing Unix commands.
Helpers include:
Link to this section Summary
Functions
Print out a file
Run a regular expression on a file and print the matching lines
Print out directories and files in tree form
Print out the current uptime
Link to this section Functions
Link to this function
cat(path)
cat(path)
cat(Path.t()) :: :"do not show this result in output"
cat(Path.t()) :: :"do not show this result in output"
Print out a file
Link to this function
grep(regex, path)
Run a regular expression on a file and print the matching lines.
iex> grep ~r/video/, "/etc/mime.types"
Link to this function
tree(path \\ ".")
tree(path \\ ".")
tree(Path.t()) :: :"do not show this result in output"
tree(Path.t()) :: :"do not show this result in output"
Print out directories and files in tree form.
Link to this function
uptime()
uptime()
uptime() :: :"do not show this result in output"
uptime() :: :"do not show this result in output"
Print out the current uptime.