efe@efe-Lenovo-B560:~/websites/genel/yellowalmanya$ cp `find -type f -name '*html'` /home/efe/Documents/sedmail/websitesi
bash: /bin/cp: Argument list too long
o kadar çok dosya varki cp ye argüman listesi olarak gönderilemiyor. Bunun yerine aşağıdaki kod işimi çözebildi ancak.
efe@efe-Lenovo-B560:~/websites/genel/yellowalmanya$ find -type f -name "*html" |xargs -i cp {} /home/efe/Documents/sedmail/websitesi/
Same commands
Both are copying html files to another directory.
1 comment:
script shell
Post a Comment