Originally posted by: raokl
Hello All,
I am new to this shell scripting , I wanted to modify the output of my find command such that it does not display the path but only file names , for example I am searching for the files which are modified in the last 24 hours which is
find /usr/monitor/text/ -type f -mtime -1 -print , this is returning me the output as
/usr/monitor/text/abc.txt
/usr/monitor/text/def.txt
/usr/monitor/text/ijk.txt
but i want to modify the output such that it gives only the file names and remove the path
please advice me on this
#AIX-Forum