Tested out the tee command
This commit is contained in:
13
Misc/testing_tee.sh
Executable file
13
Misc/testing_tee.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Jack-Benny Persson
|
||||
# LX13
|
||||
# Testing out tee
|
||||
|
||||
date | tee -a teeout.txt # This will appear on both terminal and in
|
||||
# teeout.txt file (-a for appending data)
|
||||
who | tee -a teeout.txt
|
||||
echo "----" | tee -a teeout.txt
|
||||
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user