Entries tagged as output redirection

ZSH Gem #6: Redirect output to multiple files

Posted by | Comments (4) | Trackbacks (0)

One unique feature in ZSH is that you can redirect streams to multiple outputs or inputs simultaneously. With this multi-stream redirection you can, e.g., redirect STDOUT OR STDERR of a program to more than one file at the same time without using a command line tool such as tee.

Read more…

#23: File descriptors

Posted by | Comments (0) | Trackbacks (2)

File descriptors are very essential in programming. When you open a file, you get a token, which identifies the file instance. With this token you refer to the file, write, read or close it. You have about the same on the shell.

Read more…

#4: Cut your use of cat

Posted by | Comments (0) | Trackbacks (4)

All Linux administrators know this tool and some make use of it very often: cat. Also Linux beginners get to know this quickly and use it a lot. Most people love it so much that they utilize it in every situation whether it's needed or absolute nonsense.

Read more…

#2: Simple but useful: tee

Posted by | Comments (0) | Trackbacks (2)

One little tool which's often overlooked is tee. It is very smart and can help you so much. tee is a typical UNIX program. It can't do much and has been created for only one purpose: writing STDIN to STDOUT and a file. That doesn't sound very exiting yet but this simple tool can do a lot for you.

Read more…

(Page 1 of 1, totaling 4 entries)
Design and Code Copyright © 2010-2014 Janek Bevendorff Content on this site is published under the terms of the GNU Free Documentation License (GFDL). You may redistribute content only in compliance with these terms. tweetbackcheck