Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
mtime is for modified, not creation. there is no creation date.
Source Link
thrig
  • 35.8k
  • 4
  • 70
  • 88

I am trying to determine which files will be touched based on their modified date. My directory is a top a list of perhaps several levels of subdirectories.

From a terminal window I run this command:

find Program.8.koeb/ -mtime -10

Which correctly produces a list of files createdmodified within the past 10 days. However if I want to query this list to make sure that the files I want to touch using the find command, I would run this command:

find Program.8.koebe/ -mtime -10 -exec ls -gotrhR {} \;

Which produces a long list of all the files within directories of my current working directory, including subdirectories, along with the named directory find is assigned to look. So, -exec ls -gotrhR {} \; seems to be producing the same output as:

find . -mtime -10 -exec ls -gotrhR {} \;

Which is not my intention.

I am trying to determine which files will be touched based on their modified date. My directory is a top a list of perhaps several levels of subdirectories.

From a terminal window I run this command:

find Program.8.koeb/ -mtime -10

Which correctly produces a list of files created within the past 10 days. However if I want to query this list to make sure that the files I want to touch using the find command, I would run this command:

find Program.8.koebe/ -mtime -10 -exec ls -gotrhR {} \;

Which produces a long list of all the files within directories of my current working directory, including subdirectories, along with the named directory find is assigned to look. So, -exec ls -gotrhR {} \; seems to be producing the same output as:

find . -mtime -10 -exec ls -gotrhR {} \;

Which is not my intention.

I am trying to determine which files will be touched based on their modified date. My directory is a top a list of perhaps several levels of subdirectories.

From a terminal window I run this command:

find Program.8.koeb/ -mtime -10

Which correctly produces a list of files modified within the past 10 days. However if I want to query this list to make sure that the files I want to touch using the find command, I would run this command:

find Program.8.koebe/ -mtime -10 -exec ls -gotrhR {} \;

Which produces a long list of all the files within directories of my current working directory, including subdirectories, along with the named directory find is assigned to look. So, -exec ls -gotrhR {} \; seems to be producing the same output as:

find . -mtime -10 -exec ls -gotrhR {} \;

Which is not my intention.

I am trying to determine which files will be touched based on their modified date. My directory is a top a list of perhaps several levels of subdirectories.

From a terminal window I run this command:

    find Program.8.koeb/ -mtime -10

whichWhich correctly produces a list of files created within the past 10 days. However if I want to query this list to make sure that the files I want to touch using the findfind command, I would run this command:

    find Program.8.koebe/ -mtime -10 -exec ls -gotrhR {} \;

whichWhich produces a long list of all the files with inwithin directories of my current working directory, including subdirectories, along with the named directory findfind is assignassigned to look. So, "-exec ls -gotrhR {} ;"-exec ls -gotrhR {} \; seems to be producing the same output as:

    find . -mtime -10 -exec ls -gotrhR {} \;

whichWhich is not my intention.

Any offers on a helping hand?

cheers

Gustav

I am trying to determine which files will be touched based on their modified date. My directory is a top a list of perhaps several levels of subdirectories.

From a terminal window I run this command:

    find Program.8.koeb/ -mtime -10

which correctly produces a list of files created within the past 10 days. However if I want to query this list to make sure that the files I want to touch using the find command I run this command:

    find Program.8.koebe/ -mtime -10 -exec ls -gotrhR {} \;

which produces a long list of all the files with in directories of my current working directory, including subdirectories, along with the named directory find is assign to look. So, "-exec ls -gotrhR {} ;" seems to be producing the same output as:

    find . -mtime -10 -exec ls -gotrhR {} \;

which is not my intention.

Any offers on a helping hand?

cheers

Gustav

I am trying to determine which files will be touched based on their modified date. My directory is a top a list of perhaps several levels of subdirectories.

From a terminal window I run this command:

find Program.8.koeb/ -mtime -10

Which correctly produces a list of files created within the past 10 days. However if I want to query this list to make sure that the files I want to touch using the find command, I would run this command:

find Program.8.koebe/ -mtime -10 -exec ls -gotrhR {} \;

Which produces a long list of all the files within directories of my current working directory, including subdirectories, along with the named directory find is assigned to look. So, -exec ls -gotrhR {} \; seems to be producing the same output as:

find . -mtime -10 -exec ls -gotrhR {} \;

Which is not my intention.

Source Link
Gustav
  • 41
  • 2
  • 7
Loading