|
Awkl
|
Functions | |
| string | quote (string x) |
| unassigned | quote (array< string > A) |
| Shell-quote strings in an array. | |
| string | quote0 (string x) |
| Shell-quote nullbyte separated strings. | |
| string | read (string c, string cb) |
| Run a command and return its output. | |
| string | extern (string c) |
| Run a single external command and return its output. | |
| unassigned | write (string c, string stdin, string cb) |
| unassigned | write (string c, array< string > A, string cb) |
| Write text to the standard input of a command to be run. | |
| unassigned | writeFile (string c, string f, string cb) |
| Write file contents as standard input of a command to be run. | |
| unassigned | writeFile (string c, array< string > F, string cb) |
| Write files' contents as standard input of a command to be run. | |
| string | writeRead (string c, string stdin, string cbr, string cbw) |
| string | writeRead (string c, array< string > A, string cbr, string cbw) |
| Run a command passing it input text and return its output. | |
| string | writeFileRead (string c, string f, string cbr, string cbw) |
| Run a command passing it a file content as input and return its output. | |
| auto | writeCmdRead (cin, cout, cbr, cbw) |
| Run a command passing it another command's output as input and return its output. | |
| string | 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 | bash (c) |
| Run a command with the Bash shell and return its exit status. | |
| auto | bashRead (c) |
| Run a command with the Bash shell 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.
| string cmd::extern | ( | string | c | ) |
Run a single external command and return its output.
| c | Command to run. If it contains a nullbyte, arguments are nullbyte-separated |
EOF, this is a limitation of gawk's getline | unassigned cmd::quote | ( | array< string > | A | ) |
Shell-quote strings in an array.
| [in,out] | A | Source array whose elements are to be shell-quoted in-place: safely usable as Unix shell arguments |
| string cmd::quote | ( | string | x | ) |
Shell-quote a string
| x | Original string |
| string cmd::quote0 | ( | string | x | ) |
Shell-quote nullbyte separated strings.
| x | Containing string whose nullbyte separated elements are to be shell-quoted |
| string cmd::read | ( | string | c, |
| string | cb ) |
Run a command and return its output.
| c | Command to run |
| cb | Callback function for each line read. Optional |
EOF, this is a limitation of gawk's getline | unassigned cmd::write | ( | string | c, |
| array< string > | A, | ||
| string | cb ) |
Write text to the standard input of a command to be run.
| c | Command to run |
| A | Array of strings passed to the command as standard input |
| cb | Callback function for each line written. Optional |
| unassigned cmd::write | ( | string | c, |
| string | stdin, | ||
| string | cb ) |
Write text to the standard input of a command to be run
| c | Command to run |
| stdin | Standard input text passed to the command |
| cb | Callback function for each line written. Optional |
| auto cmd::writeCmdRead | ( | cin | , |
| cout | , | ||
| cbr | , | ||
| cbw | ) |
Run a command passing it another command's output as input and return its output.
cout <<< "$(cin)", not cin | cout | unassigned cmd::writeFile | ( | string | c, |
| array< string > | F, | ||
| string | cb ) |
Write files' contents as standard input of a command to be run.
| c | Command to run |
| F | Array of file names whose contents are passed as standard input to the command |
| cb | Callback function for each line written. Optional |
| unassigned cmd::writeFile | ( | string | c, |
| string | f, | ||
| string | cb ) |
Write file contents as standard input of a command to be run.
| c | Command to run |
| f | File name whose content are passed as standard input to the command |
| cb | Callback function for each line written. Optional |
| 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.
| c | Command to run |
| F | Array of file names whose contents are passed as standard input to the command |
| cbr | Callback function for each line read. Optional |
| cbw | Callback function for each line written. Optional |
| 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.
| c | Command to run |
| f | File name whose content are passed as standard input to the command |
| cbr | Callback function for each line read. Optional |
| cbw | Callback function for each line written. Optional |
| string cmd::writeRead | ( | string | c, |
| array< string > | A, | ||
| string | cbr, | ||
| string | cbw ) |
Run a command passing it input text and return its output.
| c | Command to run |
| A | Array of strings passed to the command as standard input |
| cbr | Callback function for each line read. Optional |
| cbw | Callback function for each line written. Optional |
| string cmd::writeRead | ( | string | c, |
| string | stdin, | ||
| string | cbr, | ||
| string | cbw ) |
Run a command passing it input text and return its output
| c | Command to run |
| stdin | Standard input text passed to the command |
| cbr | Callback function for each line read. Optional |
| cbw | Callback function for each line written. Optional |