zoukankan      html  css  js  c++  java
  • find

    find accepts multiple -exec portions to the command. For example:
    
    find . -name "*.txt" -exec echo {} ; -exec grep banana {} ;
    
    Note that in this case the second command will only run if the first one returns successfully, 
    as mentioned by @Caleb. If you want both commands to run regardless of their success or failure,
    you could use this construct:
    find . -name "*.txt" ( -exec echo {} ; -o -exec true ; ) -exec grep banana {} ;

    https://stackoverflow.com/questions/5119946/find-exec-with-multiple-commands

    find . -name "*.out" -type f -exec {} ;
    clear && fswatch  --latency 0.2 --recursive --format "%f##%p" --event Updated -e ".*" -i ".*out$" ./ | clear && sudo find . -name a.out -type f -exec {} ; 2>&1
  • 相关阅读:
    java-多态
    java-继承
    java-访问修饰符
    mysql基础入门
    子查询
    多表查询
    mysql表(多对多)
    myslql主外键约束
    Sql语句分类
    Redis的一些介绍
  • 原文地址:https://www.cnblogs.com/Searchor/p/13450879.html
Copyright © 2011-2022 走看看