i'm trying to copy the 1.txt files (sample files) in to different path location using the below command.
But it is not copying the files , when i tried for single location able to copy the file.
can any one please assist here.
Copying several files to one target directory can be done with cp . Not what you want to do - cp to several targets in one go. You'd need a loop, or e.g.
where /p/t/f is the "path to file". Supply full target paths if necessary. You could use any other means to provide the targets on stdin, like a file, or an ls command, ...
The find command provides a list of files/directories according to some criteria. To use it you must do it the other way round, i.e. let it provide a list of directories to copy a fixed file to, like this: