Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173829

Re: bash NEWBIE I/O and I/O redirection problems

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: bash NEWBIE I/O and I/O redirection problems
Date 2016-10-25 14:20 +0200
Message-ID <sw8RY-5yg-35@gated-at.bofh.it> (permalink)
References <svZEZ-7Nb-5@gated-at.bofh.it> <sw0hH-8lF-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/24/2016 10:09 PM, der.hans wrote:
> Am 24. Oct, 2016 schwätzte Richard Owlett so:
>
> moin moin Richard,
>
> "to stdout AND "logfile" can be accomplished with tee.
>
> # puts the results of ls in the file and also shows results on
> STDOUT
> # the -a tells tee to append so repeated calls will get all of
> the output
> # from your script
> ls | tee -a /tmp/ls.out
>
> By default tee truncates so without the -a it will first zero out
> the
> file, then start adding text.

Thank you. I found that out over on alt.os.linux.debian when my 
post to this group took a proverbial forever to show up.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bash NEWBIE I/O and I/O redirection problems Richard Owlett <rowlett@cloud85.net> - 2016-10-25 04:30 +0200
  Re: bash NEWBIE I/O and I/O redirection problems "der.hans" <deb-user@LuftHans.com> - 2016-10-25 05:10 +0200
    Re: bash NEWBIE I/O and I/O redirection problems "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-25 09:30 +0200
      Re: bash NEWBIE I/O and I/O redirection problems "Thomas Schmitt" <scdbackup@gmx.net> - 2016-10-25 11:30 +0200
    Re: bash NEWBIE I/O and I/O redirection problems Richard Owlett <rowlett@cloud85.net> - 2016-10-25 14:20 +0200
  Re: bash NEWBIE I/O and I/O redirection problems <tomas@tuxteam.de> - 2016-10-25 11:30 +0200
    Re: bash NEWBIE I/O and I/O redirection problems Richard Owlett <rowlett@cloud85.net> - 2016-10-25 14:20 +0200
  Re: bash NEWBIE I/O and I/O redirection problems Greg Wooledge <wooledg@eeg.ccf.org> - 2016-10-25 14:10 +0200

csiph-web