问题描述
我想将一个文件从一个文件夹移动到另一个文件夹。另一个文件夹在运行时以YYYY-MM-DD_DD-MM格式随机生成并带有日期和时间戳。代码如下。我需要以YYYY-MM-DD_DD-MM格式提供当前时间戳的路径。
为此写了一些代码
# Command to execute
execute_cmd=mv
path=/home/centos
# Files inside actual_dir has to be moved
actual_dir="$path/Input_File"
# This is the directory where files will be moved and kept
backup_dir="$path/Archeive/{$Here I want to write some code so that I can move into one particular folder with date and time stamp YYYY-MM-DD_DD-MM} "
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)