

Linux脚步问题
source link: https://www.oschina.net/question/3748069_2322392
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Linux脚步问题
find /app/jar/aService/log/medical-a/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
find /app/jar/bService/log/medical-b/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
find /app/jar/cService/log/medical-c/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
find /app/jar/dService/log/medical-d/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
find /app/jar/eService/log/medical-e/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
find /app/jar/fService/log/medical-f/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
find /app/jar/gService/log/medical-g/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
我写了个Linux脚本
只有一个命令
find /app/jar/businessService/log/medical-business/ -type f -name "*" -mtime +7 -exec rm -rf {} \;
可以执行成功。
我加了多个就无法执行,全部出现以下错误,那位大神帮我看一下,到底哪里不对?
find: missing argument to `-exec'
find: missing argument to `-exec'
find: missing argument to `-exec'
find: missing argument to `-exec'
find: missing argument to `-exec'
find: missing argument to `-exec'
Recommend
-
67
-
74
电商脚步意想不到的快 就连杂货店也难逃网购冲击了
-
37
雷锋网消息,11 月 15 日,Google 中国确认,Google Cloud AI 研发主管兼 Google AI 中国中心总裁李佳已经离开 Google。李佳博士随后回应称,确实已经从 Google 离职,目前在斯坦福医学院全职参与智能医院项目,未来会投入 AI 与医疗的项...
-
50
坐落多瑙河畔的因戈尔施塔特,是德国东南部一个人口仅 13万的小城市。但在汽车行业,这座城市的名字却并不令人陌生,知名汽车品牌奥迪的总部就坐落于此。
-
48
(o^^)o /* 404 page not found. */ ↑ Back Home ↑
-
16
出品|虎嗅大商业组 作者|房煜 虎嗅主笔 头图|视觉中国 虎嗅注:近期虎嗅将陆续推出“独角兽挣扎求生”系列报道,...
-
6
【五一我在岗】跟“警”脚步 护你平安出行 【五一我在岗】跟“警”脚步 护你平安出行 ...
-
7
创新的脚步从未停止 中兴拿出了屏下摄像手机Axon 30 5G 【原创】 2021-07-27 22:34:35关键字: 中兴 今...
-
7
紧随梅西脚步,Dior 成为巴黎圣日耳曼足球队官方服装赞助商 左 晓荔 2021-09-06 ...
-
6
石头智能双刷洗地机U10:跟随用户的脚步 让地面“焕”然一新 作者:陶婧婕 【原创】 2021-09-13 17:48:37关键字: 石头智能双刷洗地机U10
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK