From 5db811253e0440b372b9063d8a92a98e06a39171 Mon Sep 17 00:00:00 2001 From: Eugene Sharygin Date: Mon, 16 Feb 2015 15:28:11 +0300 Subject: psub: add -s, --suffix --- doc_src/psub.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc_src') diff --git a/doc_src/psub.txt b/doc_src/psub.txt index e6347d85..42fb7257 100644 --- a/doc_src/psub.txt +++ b/doc_src/psub.txt @@ -2,7 +2,7 @@ \subsection psub-synopsis Synopsis \fish{synopsis} -COMMAND1 ( COMMAND2 | psub [-f] ) +COMMAND1 ( COMMAND2 | psub [-f] [-s SUFFIX]) \endfish \subsection psub-description Description @@ -11,10 +11,15 @@ Posix shells feature a syntax that is a mix between command substitution and pip If the `-f` or `--file` switch is given to `psub`, `psub` will use a regular file instead of a named pipe to communicate with the calling process. This will cause `psub` to be significantly slower when large amounts of data are involved, but has the advantage that the reading process can seek in the stream. +If the `-s` or `---suffix` switch is given, `psub` will append SUFFIX to the filename. + \subsection psub-example Example \fish diff (sort a.txt | psub) (sort b.txt | psub) # shows the difference between the sorted versions of files `a.txt` and `b.txt`. -\endfish \ No newline at end of file + +source-highlight -f esc (cpp main.c | psub -s .c) +# highlights `main.c` after preprocessing as a C source. +\endfish -- cgit v1.2.3