shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] test, for + while, array (apenas informativo)


From: Reinaldo Carvalho
Subject: Re: [shell-script] test, for + while, array (apenas informativo)
Date: Thu, 24 Nov 2005 11:05:29 -0300

> Testar arquivos:
> alem do if e checagem de código de retorno, tambem é possivel fazer:
> [ -d Desktop ] &&  echo "eh um arquivo"||echo "eh um diretorio"
> (sem if, sem test)

which [
-rwxr-xr-x  1 root root 23928 2004-07-16 08:37 /usr/bin/[

"[" não deixa de ser o test.

--
Reinaldo Carvalho
Debian Sarge 3.1 - Linux User: #238310
Prodepa - address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]