diff options
author | Eugene Sharygin <eush77@gmail.com> | 2015-02-16 15:28:11 +0300 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-11-14 13:15:30 +0100 |
commit | 5db811253e0440b372b9063d8a92a98e06a39171 (patch) | |
tree | 8c1fd59a143896a6b6dec7cd4958bb6ae596849a /doc_src | |
parent | e31a93040e46f32267ec3a72eca71a008e5c9e3a (diff) |
psub: add -s, --suffix
Diffstat (limited to 'doc_src')
-rw-r--r-- | doc_src/psub.txt | 9 |
1 files changed, 7 insertions, 2 deletions
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 |