echo >tst
echo >tst.
echo >tst.txt
echo >tst.html
echo >tst.ms.html
echo >tst.ms..html
find -maxdepth 1 -type f -name "*."
I get only: ./tst.
I want to get the one file ./tst sans trailing dot
echo >tst
echo >tst.
echo >tst.txt
echo >tst.html
echo >tst.ms.html
echo >tst.ms..html
find -maxdepth 1 -type f -name "*."
I get only: ./tst.
I want to get the one file ./tst sans trailing dot
Copyright © 2021 Jogjafile Inc.
One solution in this case is use
!to exclude all the names with any period in their names:which returns only
./tst.