Reputation: 11
I am trying to get all files in a directory which contain only one extension dot such as abcd.py and not abcd.efg.py
i've tried ls ~/scripts/[^.].py with no success
ls ~/scripts/[^.].py
Upvotes: 0
Views: 394
eventually, I used: find ~/scripts/ -regex "[^.]*.py"
Upvotes: 1