SORU
8 Aralık 2011, PERŞEMBE


bash Geçerli dizinin üst dizininin olsun

Gibi bir dosya yolu var

/home/smith/Desktop/Test
/home/smith/Desktop/Test/

nasıl ana dizin çok dize değiştirebilirim?

örneğin

/home/smith/Desktop
/home/smith/Desktop/

CEVAP
8 Aralık 2011, PERŞEMBE


dir=/home/smith/Desktop/Test
parentdir="$(dirname "$dir")"

Eğer eğik çizgi ise orada da işe yarıyor.

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • joshsnice

    joshsnice

    28 Kasım 2006
  • MarinaHD2001

    MarinaHD2001

    7 ŞUBAT 2009
  • Blu animations and other videos

    Blu animatio

    15 HAZİRAN 2007