Hi All
When we use find command command in Unix we get the result as
/home/user/folder/filename1
/home/user/folder/filename2
/home/user/folder/filename3
Is it possible that i only get the file name
The expected output when using find command is
filename1
filename2
filename3
I am seeking any switch in find command that display only file name
@parthmittal2007 and regarding post #6.
The basename command only expects one filename and some other optional parameters. See man basename . Your script is giving it the optional parameters and creating a command which will never produce any output.