I need to search for the file path ending with *Tests.cs having multiple directories. I need to display all the file path in spaces instead of new line. Currently, it is displaying as
./dir1/bin/dir1Tests.cs ./dir2/bin/dir2Tests.cs
How to remove ./ from each file path and display it as follows?
dir1/bin/dir1Tests.cs dir2/bin/dir2Tests.cs
My bash script is:
FILES=$(find . -path '*bin/*' -name *Tests.cs -type f -printf "%p ")
echo $FILES