Testing out different forms of redirections

This commit is contained in:
2013-12-26 21:13:20 +01:00
parent 7fca3e9ab6
commit 5d78a62a0d
7 changed files with 77 additions and 0 deletions

16
Misc/redirections_reset.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Jack-Benny Persson
# LX13
# Testing to reset a permanent redirection
exec 3>&1
exec 1>reset_test
echo "This line should go to the reset_test file"
exec 1>&3
echo "And this should be outputted on STDOUD as normal"
exit 0