©2018 by Zach Pfeffer

SEARCH THIS SITE

All the Latest

WELCOME TO ZACH'S BLOG

Our Recent Posts

Business Classifications from Sandia National Laboratories

March 24, 2020

"Guidance for Completing the Company Commercialization Metrics Survey" from NASA 2020 SBIR/STTR

March 21, 2020

Army 20.1 SBIR TABA Funding Clarification: is $5k "On Top" of the $167,500 Available?

February 18, 2020

1/1
Please reload

Tags

Please reload

May 29, 2018

touch start; <DO STUFF>; find . -cnewer start -printf "%T+\t%p\n" | sort

May 24, 2018

This blog is a repost of the best answer I've found to-date for: find all text files.

It also contains some additional info on how the method works.

Read to the end for an "improved" version.

Command

-From stackoverflow submitted by crudcore

How this Works

From the orig...

May 19, 2018

find . your-options -printf "%T+\t%p\n" | sort

May 8, 2018

To find a file that was update 3 minutes ago on Linux type find . -cmin 3 To find a file that was updated 10 minutes ago type: find . -cmin 10.

April 11, 2018

This post lists a Linux command that will print the name of a file and then print the contents of that file. 

The following command will print the name of the file and the files contents:

find . -type f -print -exec cat '{}' \;

References

  • Find man page @ link

  • GNU...

February 27, 2018

find . -type f -name "*.dt*" -exec grep -Hi 'eth0' {} \;