| - The pipe under lunix

December 2016


| - The pipe under lunix




Issue


Please how I can use the pipe under linux, if the second command requires one argument, for example, I want to use the command find, which will return the files that I want to use as the first argument to the PC that requires second argument: the destination, so how can I combine all these data. Thank you in advance

Solution


Please use this command line;
find / path-type f-name "*. txt" -exec cp-v {} / destination / \;

Note


Solved by zipe31

Related :

This document entitled « | - The pipe under lunix » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.