How to strip leading “./” in unix “find”?

前端 未结 7 1897
盖世英雄少女心
盖世英雄少女心 2020-11-29 17:14
find . -type f -print

prints out

./file1
./file2
./file3

Any way to make it print

file1
file2
fil         


        
相关标签:
7条回答
  • 2020-11-29 17:42

    If they're only in the current directory

    find * -type f -print

    Is that what you want?

    0 讨论(0)
提交回复
热议问题