‘nix find

names: *.rb
directories: current & downwards (recursively)
dates: Last 2 days.
Size >= 10k

find . -type f -mtime -2 -size +10k -name *.rb

Can do:

-size -1k

for small files, or -100c for less than 100 characters

-type d

for directories.

mtime is always number of days, e.g. "modified in the last 10 days, look in current directory and below.

find . * -mtime -10

mtime= modified
ctime = created
atime = accessed

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s