SORU
9 Mart 2011, ÇARŞAMBA


Bulmak ve dosyaları kopyala

Neden aşağıdaki hedef klasöre dosyaları kopyalamak değil mi?

# find /home/shantanu/processed/ -name '*2011*.xml' -exec cp /home/shantanu/tosend {} \;

cp: omitting directory `/home/shantanu/tosend'
cp: omitting directory `/home/shantanu/tosend'
cp: omitting directory `/home/shantanu/tosend'

CEVAP
9 Mart 2011, ÇARŞAMBA


Eğer niyetiniz /home/shantanu/atmak içine dosyaları kopyalamak için ise tersine cp bağımsız değişkenlerin sırası var:

find /home/shantanu/processed/ -name '*2011*.xml' -exec cp {} /home/shantanu/tosend  \;

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • pain975

    pain975

    27 NİSAN 2008
  • Rootjunky.com

    Rootjunky.co

    22 EKİM 2011
  • Shylo Sharity

    Shylo Sharit

    27 EKİM 2011