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

  • alex maybury

    alex maybury

    20 Aralık 2007
  • Epic Tutorials for iPhone, iPad and iOS

    Epic Tutoria

    18 EYLÜL 2011
  • iZAPPA

    iZAPPA

    16 Temmuz 2010