%$Id: 3outfile.tex,v 25.95 2006/08/26 01:26:53 al Exp $ -*- LaTeX -*-
% man  commands  outfile .
% Copyright (C) 2001 Albert Davis
% Author: Albert Davis <aldavis@ieee.org>
%
% This file is part of "Gnucap", the Gnu Circuit Analysis Package
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2, or (at your option)
% any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
% 02110-1301, USA.
%------------------------------------------------------------------------
\section{{\tt >} command}
\index{> command}
\index{files}
\index{disk files}
\index{output redirection}
\index{i-o redirection}
\index{redirection: i-o}
%------------------------------------------------------------------------
\subsection{Syntax}
\begin{verse}
{\tt >} {\it file}\\
{\tt >>} {\it file}\\
{\tt >}
\end{verse}
%------------------------------------------------------------------------
\subsection{Purpose}

Saves a copy of all program output (except help) in a file.
%------------------------------------------------------------------------
\subsection{Comments}

{\tt >} creates a new file for this output.  If the file already exists, the
old one is lost, and replaced by the new one.

{\tt >>} appends to an existing file, if it exists, otherwise it creates one.

A bare {\tt >} closes the file.
%------------------------------------------------------------------------
\subsection{Examples}

\begin{description}

\item[{\tt > run1}] Save everything in a file {\tt run1} in the current
directory.  If {\tt run1} already exists, the old one is gone.

\item[{\tt >> allof}] Save everything in a file {\tt allof}.  If {\tt
allof} already exists, it is kept, and the new data is added to the end.

\item[{\tt >}] Close the file.  Stop saving.

\end{description}
%------------------------------------------------------------------------
%------------------------------------------------------------------------
