| - The pipe under lunix

March 2017


| - 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


Published by aakai1056.
This document, titled "| - The pipe under lunix," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).