Tested out the tee command
This commit is contained in:
parent
87d3c6739b
commit
ea53d81fef
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
|
Loading…
x
Reference in New Issue
Block a user