Search code examples
unixfindstrip

How to strip leading "./" in unix "find"?


find . -type f -print

prints out

./file1
./file2
./file3

Any way to make it print

file1
file2
file3

?


Solution

  • If they're only in the current directory

    find * -type f -print

    Is that what you want?