Advertisement
Guest User

CHANCE

a guest
Feb 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Exercice 2 :
  2.  
  3. find -user ajanquin
  4.  
  5.  
  6. Exercice 2 bis :
  7.  
  8. Nous remaarquons que la première commande ouvre les fichiers en les listant tandis que la seconde ne donne que la liste des fichiers.
  9.  
  10. Exercice 3 :
  11.  
  12. 1)
  13. Version pipe :
  14. find ~/Pratique_SE/TP4/fic_C -type f -name \*.c | xargs grep ^[\ ]*if
  15.  
  16. Version exec :
  17. find ~/Pratique_SE/TP4/fic_C -type f -name \*.c -exec grep ^[\ ]*if {} \+
  18.  
  19. 2)
  20. find ~/Pratique_SE/TP4/fic_C -type f -name \*.c -exec grep -l if {} \;
  21.  
  22. 3)
  23. find . -type f -and -name \*~ -and \(-ctime 5 -o -ctime +10\) -exec grep ^[\ ]*[if]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement