-1

building on this questiion and answer here

#!/bin/bash
find $1 -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head

how do I alter this so that it searches for *.html files

Community
  • 1
  • 1
HattrickNZ
  • 4,373
  • 15
  • 54
  • 98

1 Answers1

0

think thisis what I am looking for

find $1 -name '*.html' -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head
HattrickNZ
  • 4,373
  • 15
  • 54
  • 98