Linux¶
https://github.com/fzinfz/scripts/blob/master/linux/init.sh
date "+%Y%m%d_%H%M%S"
Python¶
https://github.com/fzinfz/ipynb/tree/main/python
import time
f = "_" + str(time.strftime('%Y%m%d_%H%M%S', time.localtime(time.time()))) + '.xlsx'
import subprocess
print(subprocess.check_output(['cat', path]))
print(subprocess.check_output(cmd, shell=True).strip())