I am trying to use the tee command to redirect output to a file, and I want the file to be created in a dir which is yet to be created.
date | tee new_dir/new_fi
No. You'll have to create the directory before running tee.
tee