Gnuru.org
Productive Linux


Subscribe

 Subscribe in a reader

Enter your email address:

Delivered by FeedBurner


Bash: Piping to a Shell Script
28 October 2008 @ 14:54 GMT
by Paul

Note to self. When you want to pipe information to a shell script, the first command in the script receives the data.

Thus piping data to this script:

#!/bin/bash
cat > /tmp/captured.txt	

Like this:

myscript < data.txt
Will result in the data in captured.txt.

Tags: bash script


Leave a comment:

Are you human?