690 shaares
3 liens privés
3 liens privés
4 résultats
taggé
find
find the latest modified files recursively :
find . -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head
Command line :
find . -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "
find jar class
@Test
public void classFinder() {
ClassLoader loader = Test.class.getClassLoader();
System.out.println(loader.getResource("org/hamcrest/Matcher.class"));
}
File was last accessed n*24 hours ago. When find figures out how many 24-hour periods ago the file was last accessed, any fractional part is ignored:
+7 = more than 7 days ago
2 = between 2 and 3 days ago
-2 = within the past 2 days
+1 = more than 1 day old
1 = between 1 and 2 days ago
-1 = within the past 1 day
0 = within the past 1 day
Ainsi que :
touch temp -t 200604141130
touch ntemp -t 200604261630
find /data/ -cnewer temp -and ! -cnewer ntemp