User Tools

Site Tools


ubuntu:find:find_the_most_recently_modified_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ubuntu:find:find_the_most_recently_modified_file [2020/07/15 09:30] – external edit 127.0.0.1ubuntu: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 '%TY-%Tm-%Td %TT %p\n' | sort 
-</code> 
- 
- 
----- 
- 
-===== Using awk ===== 
- 
-<code bash> 
-#!/bin/bash 
- 
-ls -lrt | grep ^- | awk 'END{print $NF}' 
-</code> 
- 
-Lists either the last updated or created file in your current working directory. 
ubuntu/find/find_the_most_recently_modified_file.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki