bash - What does this command Actually do? Is it correct? -



bash - What does this command Actually do? Is it correct? -

i found command line when checking bash script! question command , command correct?

find / -name "*.src" | xargs cp ~/desktop/log.txt

find files or directory .src extension in / , re-create file ~/desktop/log.txt find result's filename

for illustration if output of find command

file.src directory1.src file2.src

xargs command execute cp ~/desktop/log.txt file.src directory1.src file2.src not create sense.

bash find command

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -