Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

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: script bash



Leave a comment:

Are you human?