ubuntu:find:find_the_most_recently_modified_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:find:find_the_most_recently_modified_file [2019/12/17 19:24] – peter | ubuntu:find:find_the_most_recently_modified_file [2022/06/13 09:06] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Find - Find the most recently modified file ====== | ||
- | <code bash> | ||
- | find . -type f -printf ' | ||
- | </ | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Using awk ===== | ||
- | |||
- | <code bash> | ||
- | #!/bin/bash | ||
- | |||
- | ls -lrt | grep ^- | awk ' | ||
- | </ | ||
- | |||
- | Lists either the last updated or created file in your current working directory. |
ubuntu/find/find_the_most_recently_modified_file.1576610691.txt.gz · Last modified: 2020/07/15 09:30 (external edit)