How do I manage to find all files in a directory and subdirectories and run a command on them?
find . -type f -name "*.txt"
finds all txt files and:
find . -type f -name "*.txt" | gedit
sends it to gedit, but inside a text file. I want gedit to open all text files.