Linuxlookup.com Tip Of The Week: bash Redirection
Aug 18, 2001, 20:35 (2 Talkback[s])
(Other stories by Randy)
"Shell redirection - sending the output of a command to
a file or reading the input from a file - is commonly used and
supported by any shell you might use. But bash offers some
redirection tricks above and beyond what you might seen in the C
shell.
The simplest forms of redirection are available in all shells.
They look like this:
% wc totw* > totw_count # wc output goes to file totw_count
% mail randy < mailfile # send randy the contents of mailfile
Complete
Story
Related Stories:
- IBM developerWorks: Using Bash shell scripts for function testing(Apr 01, 2001)
- IBM developerWorks: Curtains up: introducing the Z shell(Mar 17, 2001)
- Slashdot: David Korn [author of the Korn shell, ksh] Tells All(Feb 08, 2001)
- Canada Computes: Learning The Bash Shell [Book Review](Dec 16, 2000)
- LinuxLookup.com: Shell Prompt Customization(Nov 28, 2000)
- Deadman.org: Becoming More Advanced in the Bash Shell
(Nov 19, 2000)
- FreeOS.com: Linux shell script tutorial(Oct 10, 2000)
- Linux Gazette: Introduction to Shell Scripting(Sep 23, 2000)
- Linux Gazette: Variable Mangling in Bash with String Operators(Sep 23, 2000)
- NorthernJourney.com: Linux for Newbies: Shell Concepts(Sep 18, 2000)