What is the use of the underscore _
in the find
command below which is a command to create a file in all directories?
find . -type d -exec sh -c 'echo "nameofyourwebsite" > "$1"' _ {}/downloaded.txt \;
And if {}
is a placeholder that is holding the directory names then why is the echo
command redirecting to $1
?
or $1
is first argument which is {}/downloaded.txt
?
Please explain in the simplest way how this command is working.