scripts_grundkurs/Misc/testing_tee.sh

14 lines
246 B
Bash
Executable File

#!/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