Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. find . -name "someFile" -exec ls -alF {} ;
  2.  
  3. ls -alFt `find . -name "somefile"`
  4.  
  5. ls -alFt `find . -name "bla.txt"` | rev | cut -d" " -f1 | rev | head -1
  6.  
  7. find . -name "someFile" -exec stat -c '%n:%Y' {} + | sort -t : -k2 | cut -d : -f1
  8.  
  9. while IFS=: read -r f t; do
  10. echo "$f <$(date -d @$t)>"
  11. done < <(find . -name "someFile" -exec stat -c '%N:%Y' '{}' + | sort -t : -k2)
  12.  
  13. find . -name "someFile"-printf "%p:%T@n" | sort -t : -k2
  14.  
  15. find . -name someFile* -type f -exec stat -c "%W %n" -- {} ; | sort -nr | head -n20
  16.  
  17. find . -name someFile* -type f -exec stat -c "%W %n" -- {} ; | sort -n | head -n20
  18.  
  19. %w time of file birth, human-readable; - if unknown
  20. %W time of file birth, seconds since Epoch; 0 if unknown
  21. %x time of last access, human-readable
  22. %X time of last access, seconds since Epoch
  23. %y time of last modification, human-readable
  24. %Y time of last modification, seconds since Epoch
  25. %z time of last change, human-readable
  26. %Z time of last change, seconds since Epoch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement