-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
  • 3,785
  • 14
  • 47
  • 91

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
  • 3,785
  • 14
  • 47
  • 91