Monday, March 13, 2017

Bash Scripting:using an alternative file descriptor

#!/bin/bash
#
#  using an alternative file descriptor
#
exec 3>test13out
echo "This should display on the monitor"
echo "and this should be stored in the file" >&3
echo "Then this should be back on the monitor"

No comments:

Post a Comment