I was working on a lab and was having trouble with the function of part of a command we are supposed to learn. Here it is:
find . -name "*.txt" -exec ls -l {} \;
I have determined that the find . -name "*.txt" is finding all files in the current directory with the extension .txt, however I am not sure what -exec ls -1 {} \; is doing within the command. Any help or basic explanation would be much appreciated.
find– steeldriver Sep 02 '20 at 01:55find, especially the section for the-execaction. – Gordon Davisson Sep 02 '20 at 02:47