Awkl
Loading...
Searching...
No Matches
cmd.awk File Reference

Namespaces

namespace  cmd
 

Functions

string cmd::quote (string x)
 

 
unassigned cmd::quote (array< string > A)
 Shell-quote strings in an array.
 
string cmd::quote0 (string x)
 Shell-quote nullbyte separated strings.
 
string cmd::read (string c, string cb)
 Run a command and return its output.
 
string cmd::extern (string c)
 Run a single external command and return its output.
 
unassigned cmd::write (string c, string stdin, string cb)
 

 
unassigned cmd::write (string c, array< string > A, string cb)
 Write text to the standard input of a command to be run.
 
unassigned cmd::writeFile (string c, string f, string cb)
 Write file contents as standard input of a command to be run.
 
unassigned cmd::writeFile (string c, array< string > F, string cb)
 Write files' contents as standard input of a command to be run.
 
string cmd::writeRead (string c, string stdin, string cbr, string cbw)
 

 
string cmd::writeRead (string c, array< string > A, string cbr, string cbw)
 Run a command passing it input text and return its output.
 
string cmd::writeFileRead (string c, string f, string cbr, string cbw)
 Run a command passing it a file content as input and return its output.
 
auto cmd::writeCmdRead (cin, cout, cbr, cbw)
 Run a command passing it another command's output as input and return its output.
 
string cmd::writeFileRead (string c, array< string > F, string cbr, string cbw)
 Run a command passing it a files' contents as input and return its output.
 
auto cmd::bash (c)
 Run a command with the Bash shell and return its exit status.
 
auto cmd::bashRead (c)
 Run a command with the Bash shell and return its output.