Hi Gurus,
i am very to Unix, could you please advise how to find the files which are modified last 24 hrs and the file name starts with abc
will it work
find -mtime -1 | ls -lrt "abc"*
please help me out
Hi Gurus,
i am very to Unix, could you please advise how to find the files which are modified last 24 hrs and the file name starts with abc
will it work
find -mtime -1 | ls -lrt "abc"*
please help me out
Well it will kind of work. That find command will only search the current working directory. You may want to give a directory to start in. Also, if you just want files, throw it a type.
Don't use ls, use grep.
find /home/userland -mtime -1 -type f | grep abc
Thank a lot
This grepping can also be ignored and used as:
find ~ -mtime -1 -type f -iname "abc*"