I'm trying to send disk space update to multiple files so that one file will have current update which will get overwritten every hours and another file can have all the updates where it appends the output everytime it runs. but its adding output only on the file where it appends but not in the first file(/tmp/daily..)
code italic
filename=$(date +"%d_$m-%H:%M")
df -kh > /tmp/daily"$filename".txt >> /tmp/grand.txt
Is there anyway I can have these where first file(/tmp/daily...) will be overwritten with latest output and second file (/tmp/grand.txt) will append whenever it executes?
ARthur