All data written and read by these functions is formatted as a multi-line string inside the named pipe. Parsing of this data requires understanding of working with multi-line strings inside shell scripts.
In most cases, piping data to sed without the -i option should suffice.
$ pipe_w <pipe_name> <double_quoted_data_to_write> [write-flag]
Sanitization (escaping) of data to be written is currently the responsibility of the end user.
Value of write-flag |
Meaning |
---|---|
--append | Appends write of incoming data to existing data (default). |
--overwrite | Erases all existing data before writing incoming data. |
$ pipe_r <pipe_name> <item_number> [read-flag]
pipe_r
can read all data in the named pipe when 0 is passed as the item_number.
Value of read-flag |
Meaning |
---|---|
--no-delete | All data in pipe persists after read (default). |
--item-only | Only requested item persists after read. (item_number cannot be 0) |
--delete-item | Deletes the requested item after read; changes index of remaining items, deletes named pipe once empty. (item_number cannot be 0) |
--delete-all | All data and named pipe are deleted after read. |