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

Re: OT: stringhe



On Mon, Apr 15, 2002 at 05:24:39PM +0200, Leonardo Canducci wrote:
> sto studiando un script per ipchaind e mi trovo questa linea che non
> riesco a capire. mi date una mano?
> 
> # The high ports used mostly for connections we initiate and return
> # traffic.
> LOCAL_PORTS=`cat /proc/sys/net/ipv4/ip_local_port_range |cut -f1`:\
> `cat /proc/sys/net/ipv4/ip_local_port_range |cut -f2`
> 
> ok, cat /proc... | cut -f1 prende il primo valore del file e cat
> /proc/... | cut -f2 il secondo, ma cosa fanno gli apici inversi e il
> :\???

gli apici inversi fanno si che cio' che è racchiuso tra apici sia
sostituito dal risultato della sua esecuzione.
Il ':' direi che viene usato come delimitatore dei due valori estratti.

-- 

Silvano Sartore
<!> kaleidos.turin.italy

-------------------------------------------------------------------------------
"Work for something because it is good, 
   not just because it stands a chance to succeed." -  Vaclav Havel 


-- 
To UNSUBSCRIBE, email to debian-italian-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: