Find all files in the current directory (maxdepth 1) that are of type file (not directory) and are not empty, with a name ending in .txt, and execute the command 'sed 's/0/1/' on them.
find . -maxdepth 1 -type f ! -empty -name '*.txt' -exec sed 's/0/1/' {} +