SORU
14 Mart 2012, ÇARŞAMBA


zip oluşturun görmezden dizin yapısı

Bir zip komutunu kullanarak oluşturmak için bir ihtiyaç var

zip /dir/to/file/newZip /data/to/zip/data.txt

Bu çalışır, ancak oluşturulan zip dosyası bir dizin yapısı ham dosya için dizin taklit oluşturur. İhtiyacım yok ekstra klasörler bir çok şey var.

Man sayfasına veya bir google araması üzerinden üstünkörü bir cevap bulamadım.

CEVAP
14 Mart 2012, ÇARŞAMBA


-j kullanabilirsiniz.

-j
--junk-paths
          Store just the name of a saved file (junk the path), and do  not
          store  directory names. By default, zip will store the full path
          (relative to the current directory).

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • KIT KAT

    KIT KAT

    3 EKİM 2005
  • RiceBunny

    RiceBunny

    16 ŞUBAT 2006
  • SamsTech

    SamsTech

    4 NİSAN 2014