Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #find all omega3-coreInf.jars that are not in a subdir called cache and replace them with the one from temp
  2. find . -iname "omega3-coreInf.jar" -not -path "*cache*" -exec echo /usr/bin/cp /opt/temp/CuramCDEJ/lib/curam/jar/omega3-coreInf.jar {} \;
  3.  
  4. #replace numerous jars
  5. for i in *.jar; do find /opt/IBM/WebSphere/Liberty/usr/servers/CuramServer/ -iname "$i" -not -path "*cache*" -exec echo /usr/bin/cp /opt/temp/$i {} \;; done
  6.  
  7. #find files bigger than 100MB
  8. find ./ -type f -size +100M -exec ls -l {} \;
  9.  
  10. #Max depth
  11. find ./ -maxdepth 3 -name jenkins
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement