Re: How to list to a file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06Aug2007 09:24, Bob Goodwin <bobgoodwin@xxxxxxxxxxxx> wrote:
> I couldn't find that, looked in man bash but that covers a lot and I may 
> have missed it?

I went "/>><enter>" to "man bash" and behold:

Redirecting Output
       Redirection of output causes the  file  whose  name  results from  the
       expansion of word to be opened for writing on file descriptor n, or the
       standard output (file descriptor 1) if n is not specified.  If the file
       does  not exist it is created; if it does exist it is truncated to zero
       size.

       The general format for redirecting output is:

              [n]>word

       If the redirection operator is >, and the noclobber option to the  set
       builtin  has  been enabled, the redirection will fail if the file whose
       name results from the expansion of word exists and is a  regular file.
       If the redirection operator is >|, or the redirection operator is > and
       the noclobber option to the set builtin command  is  not enabled,  the
       redirection is attempted even if the file named by word exists.

   Appending Redirected Output
       Redirection  of  output  in  this  fashion  causes  the file whose name
       results from the expansion of word to be opened for appending  on file
       descriptor  n,  or  the standard output (file descriptor 1) if n is not
       specified.  If the file does not exist it is created.

       The general format for appending output is:

              [n]>>word

Of course, I already knew the answer. But a search on "redirect" or
"append" would have been profitable to you. Never forget that the pager has
search functions - they're very useful.

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux