I m finding all files ending with .sh, but need to show only filenames and without ./
(find -type f \( -name "*[.sh]" \) )
it gives me all files ending with .sh and in subdirs too:
./erj.sh
./another/r5.sh
./another/t9.sh
./another/rrr2.sh
./elro/2039jlfsdjf.sh
./elro/tlr.sh
./elro/823.sh
./222.sh
./my_find_sh
./rrr.sh
./4234.sh
./sdf.sh
but using "cut -d. -f1" gives me empty output, because it takes first dot as remove point
find -type f \( -name "*[.sh]" \) | cut -d. -f1
gives empty line.