zoukankan      html  css  js  c++  java
  • grep

    当前文件夹中删除除了install_agent之外的文件

    [oracle@mysql ~]$ ls -lrt
    total 1478408
    -rwxr-x--- 1 oracle oinstall 747358549 Sep 30  2016 agentcore.bin
    -r-xr-x--- 1 oracle oinstall    230027 Sep 30  2016 zip
    -r-xr-x--- 1 oracle oinstall    145976 Sep 30  2016 unzip
    -r-xr-x--- 1 oracle oinstall      4161 Sep 30  2016 agent.rsp
    -rw-rw---- 1 oracle oinstall       179 Sep 30  2016 agentimage.properties
    -r-xr-x--- 1 oracle oinstall     68283 Sep 30  2016 agentDeploy.sh
    drwxr-x--- 3 oracle oinstall      4096 Jul 25 21:15 oradiag_oracle
    -rwxr-x--- 1 oracle oinstall       274 Aug  3 06:28 plugins.txt
    drwxr-x--- 2 oracle oinstall      4096 Aug  3 06:28 plugins
    -rw-r----- 1 oracle oinstall 765835958 Aug  3 08:40 13.2.0.0.0_AgentCore_226.zip
    -rw-r----- 1 oracle oinstall     77686 Aug  3 08:50 agentDeploy_2019-08-03_08_50_26.log
    -rw-r----- 1 oracle oinstall        52 Aug  3 08:50 agentDeploy_2019-08-03_08_50_26.err
    -rw-r----- 1 oracle oinstall        50 Aug  3 08:52 agentDeploy_2019-08-03_08_52_26.log
    -rw-r----- 1 oracle oinstall       103 Aug  3 08:52 agentDeploy_2019-08-03_08_52_26.err
    drwxrwx--- 2 oracle oinstall      4096 Aug  3 08:54 locks
    drwxrwx--- 2 oracle oinstall      4096 Aug  3 08:54 ContentsXML
    -rw-r----- 1 oracle oinstall       127 Aug  3 08:56 agentDeploy_2019-08-03_08_53_05.err
    -rw-r----- 1 oracle oinstall       364 Aug  3 08:58 plugins.txt.status
    -rw-r----- 1 oracle oinstall     85169 Aug  3 09:00 agentDeploy_2019-08-03_08_53_05.log
    drwxr----- 2 oracle oinstall      4096 Aug  3 09:51 bea
    drwxrwx--- 3 oracle oinstall      4096 Aug  3 20:08 backup
    drwxrwx--- 2 oracle oinstall      4096 Aug  3 20:08 logs
    drwxr-x--- 2 oracle oinstall      4096 Aug  3 20:34 install_agent
    [oracle@mysql ~]$ pwd
    /home/oracle
    [oracle@mysql ~]$ ls |grep -v ^in
    13.2.0.0.0_AgentCore_226.zip
    agentcore.bin
    agentDeploy_2019-08-03_08_50_26.err
    agentDeploy_2019-08-03_08_50_26.log
    agentDeploy_2019-08-03_08_52_26.err
    agentDeploy_2019-08-03_08_52_26.log
    agentDeploy_2019-08-03_08_53_05.err
    agentDeploy_2019-08-03_08_53_05.log
    agentDeploy.sh
    agentimage.properties
    agent.rsp
    backup
    bea
    ContentsXML
    locks
    logs
    oradiag_oracle
    plugins
    plugins.txt
    plugins.txt.status
    unzip
    zip
    [oracle@mysql ~]$ ls |grep -v ^in|xargs rm -rf
    [oracle@mysql ~]$ ls
    install_agent

  • 相关阅读:
    zoj 3620 Escape Time II dfs
    zoj 3621 Factorial Problem in Base K 数论 s!后的0个数
    bzoj 1789: [Ahoi2008]Necklace Y型项链 贪心
    BZOJ 4027: [HEOI2015]兔子与樱花 树上dp
    Codeforces Beta Round #80 (Div. 1 Only) D. Time to Raid Cowavans 分块
    图论:单源最短路与多源最短路问题
    图论:图的概念与图的储存方式
    hdu 4802 GPA 水题
    Codeforces Round #202 (Div. 1) A. Mafia 贪心
    Spring Bean配置默认为单实例 pring Bean生命周期
  • 原文地址:https://www.cnblogs.com/vzhangxk/p/11302966.html
Copyright © 2011-2022 走看看