[LINUX:17300] Re: bash

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Murat Koc (muratkoc@saneg.itu.edu.tr)
Date: Tue 27 Jun 2000 - 04:16:17 EEST


> list=('*')
>
> for arg in $list
> do
> if [ -d $arg ] ; then
> echo "$arg bir dizin"
> else echo "$arg bir dizin deil"
> fi
> done
>

Selam,

#!/bin/bash
list=('*')

for arg in $list
do
if [ -d "$arg" ] ; then
echo "$arg bir dizin"
else echo "$arg bir dizin deil"
fi
done

seklinde bir problem kalmayacaktir.

IYI CALISMALAR

                                                          MURAT KOC

 
 Listeden cikmak icin:
          unsub linux
 mesajini listeci@bilkent.edu.tr adresine gonderiniz.
   Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
 Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
 Liste arsivinin adresi: http://listweb.bilkent.edu.tr/


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.