how find newer works in unix -
i have set of similar lines runs in server.
path = "/home/dept/files/" in '**find . -newer $path$(ls $path)**' .. set of codes.. done
i not getting how find newer command works here. saw find newer return files created after specific time stamp. don't see specific time stamp thats specified after keyword newer in find command. please me out how find -newer command works here.
the find -newer command return files created after specific time stamp. time stamp here time stamp of file defined $path$(ls $path).
if wish use command files modified in example last hour can use touch command create file timestamp 1 hour before now. if 2pm use following command create file in /tmp directory timestamp of 1pm: $ touch -mt 09301300 /tmp/file
then use find -newer command find files have been modified in last hour: $ find / -newer /tmp/file -print
Comments
Post a Comment