#!/bin/bash
startime='2021-09-10 00:00:00'
endtime ='2021-09-11 00:00:00'
echo $startime
find ./ -type f -newermt ''$startime'' !-newermt ''$endtime''

shell 编程中 变量有空格 读取变量不成功
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
#!/bin/bash
startime='2021-09-10 00:00:00'
endtime ='2021-09-11 00:00:00'
echo $startime
find ./ -type f -newermt ''$startime'' !-newermt ''$endtime''