Find only regular files under current directory, and print them without "./
" prefix:
find -type f -printf '%P
'
From man find, description of -printf
format:
%P File's name with the name of the command line argument under which it was found removed.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…