04 2018 档案

摘要:exec用法1、ls -l 命令放在find命令的-exec选项中find . -type f -exec ls -l {} \;2、在目录中查找更改时间在n日以前的文件并删除它们find . -type f -mtime +14 -exec rm {} \;3、在目录中查找更改时间在n日以前的文件 阅读全文
posted @ 2018-04-20 11:03 Alisonman 阅读(395) 评论(0) 推荐(0)
摘要:#!/bin/bashfiledir=tablename=inm=`awk '$2=="'${tablename}'" { if ($6=="1"){print $6 }else{ print $6} }' 入库关系对应表.txt` #确认增量,全量ses=`awk '$2=="'${tablena 阅读全文
posted @ 2018-04-13 18:12 Alisonman 阅读(223) 评论(0) 推荐(0)