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
