When trying to find certain files with certain extension for example .*c
If I input the code below
find folder1 -type f -name '*c'
the result comes up like
folder1/filename1.c
folder1/filename2.c
If I only want the file names, not including the directory to the file like below, how would i have to change the code?
filename1.c
filename2.c