-anewer fileFile was last accessed more recently than file was
modified.
-anewer is affected by -follow only if
-follow comes before -anewer on the command line.
-atime nFile was last accessed n*24 hours ago.
위와 같이...시간 설정을 하잔아요..
제가 궁금한 것은...10월10일에 대한 엑세스한 파일에 대한...설정의 경우는..
어떻게 하는지요?
As an alternative to comparing timestamps to the current time, you
can compare them to another file's timestamp. That file's timestamp
could be updated by another program when some event occurs. Or you
could set it to a particular fixed date using the `touch' command. For
example, to list files in `/usr' modified after February 1 of the
current year
- Test -anewer file
- Test -cnewer file
- Test -newer file
True if the file was last accessed (or its status changed, or it
was modified) more recently than FILE was modified. These tests
are affected by `-follow' only if `-follow' comes before them on
the command line. *Note Symbolic Links, for more information on
`-follow'. As an example, to list any files modified since
`/bin/sh' was last modified
find . -newer /bin/sh
- Test -used n
True if the file was last accessed N days after its status was
last changed. Useful for finding files that are not being used,
and could perhaps be archived or removed to save disk space.
Re: 사용하지않은 파일 삭제하는 스크립트?
Why don't u use "-atime" option.
Chances are that man page will be a very good tutor.
Re^2: 사용하지않은 파일 삭제하는 스크립트?
구런데...-atime...은...
-amin nFile was last accessed n minutes ago.
-anewer fileFile was last accessed more recently than file was
modified.
-anewer is affected by -follow only if
-follow comes before -anewer on the command line.
-atime nFile was last accessed n*24 hours ago.
위와 같이...시간 설정을 하잔아요..
제가 궁금한 것은...10월10일에 대한 엑세스한 파일에 대한...설정의 경우는..
어떻게 하는지요?
-printf format 이 옵션에 대한것이...궁금합니다..
Re^3: 사용하지않은 파일 삭제하는 스크립트?
First of all, sorry for using english.
What's exactly do u want.?
if u want delete not used files, see below.
but, "-printf" ?
=========================================================================
Comparing Timestamps
--------------------
As an alternative to comparing timestamps to the current time, you
can compare them to another file's timestamp. That file's timestamp
could be updated by another program when some event occurs. Or you
could set it to a particular fixed date using the `touch' command. For
example, to list files in `/usr' modified after February 1 of the
current year
touch -t 02010000 /tmp/stamp$$
find /usr -newer /tmp/stamp$$
rm -f /tmp/stamp$$
- Test -anewer file
- Test -cnewer file
- Test -newer file
True if the file was last accessed (or its status changed, or it
was modified) more recently than FILE was modified. These tests
are affected by `-follow' only if `-follow' comes before them on
the command line. *Note Symbolic Links, for more information on
`-follow'. As an example, to list any files modified since
`/bin/sh' was last modified
find . -newer /bin/sh
- Test -used n
True if the file was last accessed N days after its status was
last changed. Useful for finding files that are not being used,
and could perhaps be archived or removed to save disk space.
=========================================================================
and look at this site.
http//www.ls-al.com/brain/Oreily/oreilly-full/unix/upt/ch17_01.htm
댓글 달기