bin sh make dir mkdir testdir make file touch testfile txt stream to f

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
!#/bin/sh
# make dir
mkdir ~/testdir
# make file
touch ~/testfile.txt
# stream to a file
echo -e "hello world\nend" >> ~/testfile.txt