From 0877e9d2844c470e37e3e97e4384652e605fcebc Mon Sep 17 00:00:00 2001 From: James Lowe Date: Wed, 1 Oct 2014 08:10:53 +0100 Subject: [PATCH] Doc: Usage 1.2 - Added note about using wildcards Issue 4147 Added note about being able to use wildcards with LilyPond in the 'Standard shell commands' section. Changed some of the text for Windows and MacOS users, who may not know what a 'shell' is, to reflect each OS's own nomenclature for their 'Terminal' applicatoin. Other minor typo fixes in this section. --- Documentation/usage/running.itely | 43 ++++++++++++++++++------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/Documentation/usage/running.itely b/Documentation/usage/running.itely index 0bff8f68df..7f42d14bdd 100644 --- a/Documentation/usage/running.itely +++ b/Documentation/usage/running.itely @@ -52,14 +52,14 @@ scope of this manual; please consult other documentation on this topic if you are unfamiliar with the command-line. @menu -* Invoking lilypond:: +* Invoking LilyPond:: * Basic command line options for LilyPond:: * Advanced command line options for LilyPond:: * Environment variables:: * LilyPond in chroot jail:: @end menu -@node Invoking lilypond +@node Invoking LilyPond @unnumberedsubsec Invoking @command{lilypond} The @command{lilypond} executable may be called as follows from @@ -69,7 +69,6 @@ the command line. lilypond [@var{option}]@dots{} @var{file}@dots{} @end example - When invoked with a filename that has no extension, the @file{.ly} extension is tried first. To read input from stdin, use a dash (@code{-}) for @var{file}. @@ -98,28 +97,36 @@ will output @var{base}@file{-violin.pdf} and @var{base}@file{-cello-1.pdf}. -@unnumberedsubsubsec Standard shell commands +@unnumberedsubsubsec Using LilyPond with standard shell features -If your shell (i.e. command window) supports normal redirects, -then you might find it useful to use the following commands to -redirect console output to a file: +Since LilyPond is a command line application, features of the @q{shell} +used for calling LilyPond can also be put to good use. -@itemize +For example: -@item -@code{lilypond file.ly 1>stdout.log} to redirect normal output +@example +lilypond *.ly +@end example -@item -@code{lilypond file.ly 2>stderr.log} to redirect error messages +@noindent +will process all LilyPond files in the current directory. -@item -@code{lilypond file.ly &>all.log} to redirect all output +Redirecting the console output (e.g. to a file) may also be useful: -@end itemize +@example +lilypond file.ly 1> stdout.txt + +lilypond file.ly 2> stderr.txt -Consult the documentation for your shell to see if it supports these -options, or if the syntax is different. Note that these are shell -commands and have nothing to do with lilypond. +lilypond file.ly &> all.txt +@end example + +@noindent +Redirects @q{normal} output, @q{errors} only or @q{everything}, +respectively, to a text file. Consult the documentation for your +particular shell, Command (Windows), Terminal or Console +applications (MacOS X) to see if output redirection is supported or if +the syntax is different. @node Basic command line options for LilyPond -- 2.39.2