0

I would like to print out the content of files in one directory. I want to see only the content of files that have been modified today. I tried this approach:

ls -lt | grep '6. Dez' | cat

Since it does not work, I am wondering what would be the correct way to do this?

aldorado
  • 4,394
  • 10
  • 35
  • 46

1 Answers1

1

To get files modified within last day, you can use:

find . -mtime -1

Then you can print them all with

find . -mtime -1 -exec cat {} \;
fedorqui
  • 275,237
  • 103
  • 548
  • 598