user: password:
huginn - programming language with no quirks, so simple every child can master it.
Fork me on GitHub
git clone https://codestation.org/repo/huginn.git
git clone https://github.com/AmokHuginnsson/huginn.git
git clone https://bitbucket.org/huginn/huginn.git
Shell - System Shell helper funcions.
  • awk( stream, pattern, column ) - get only words from column column from lines matching pattern from given stream.
  • command_output( cmd, args, foreground ) - run command cmd with args arguments (possibly in the foreground) and return its output.
  • first_existing( paths ) - return first existing path from set of paths.
  • grep( stream, pattern ) - get only lines matching pattern from given stream.
  • has( commandName ) - check if system shell knows about of existance the command given by commandName.
  • head( path, lines ) - return first lines lines from file at path.
  • run( commandStr ) - run specified commandStr string via system shell.
  • source( paths ) - Source scripts from all existing paths.
  • spawn( cmd, args, foreground ) - execute given system command cmd with args arguments looking for cmd in system \/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin possibly in the foreground.
  • where( cmd ) - find where command cmd is located in system \/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin.