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

  • Glyn Dewis

    Glyn Dewis

    25 AĞUSTOS 2007
  • KIT KAT

    KIT KAT

    3 EKİM 2005
  • The CGBros

    The CGBros

    20 AĞUSTOS 2011