Re: delle variabili in bash e in php

Marco Gaiarin <[email protected]>
Newsgroups gmane.linux.debian.user.italian
Organization Il gaio usa sempre TIN per le liste, fallo anche tu!!!
Message-ID <[email protected]>
Mandi! Leonardo Boselli
  In chel di` si favelave...

>  1. se ho uno script bash posso fare i test su variabili locali o varibili 
> di ambiente. Come faccio a fare il test sul contenuto di un file, senza 
> dovere fare prima un varlocale=`cat file` ?

Questa la so. 

	if [ -s "/nome/del/file.ext" ]; then
		echo "Il file esiste e non è vuoto"
	fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.