tail -n 1 files* works for me.
-- - David Fleck On Sunday, May 5th, 2024 at 10:00 AM, American Citizen <website.read...@gmail.com> wrote: > Hi: > > Does anyone know the bash command for getting the tail command to work > correctly for a range of files, using the wild card character? > > tail -1 myfiles* > > does NOT work, but I do want the tail to run over the matched files in > myfiles* > > Currently I am using > > ls myfiles* | sed "s/^/tail -1 /" > tmp ; bash tmp ; rm tmp > > > but this is cumbersome. > > Thanks for showing a simple answer > > Randall