I want to create a directory and put all the key logs into it. There are 2 issues. No key files are generated no matter what location i give. Also the log files have to be in the Date folder(~/Users/Sam/Date/key.log). Since the folder is just created, how to specify the path? '''
Date="$(date)"
mkdir -p -- "$Date"
cd "$Date"
export SSLKEYLOGFILE="~/Desktop/key.log"
open /Applications/Google\ Chrome.app