erlug
[Top] [All Lists]

Re: [Erlug] sizeof file ?

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] sizeof file ?
From: Ivan <darthxiong@xxxxxxxxx>
Date: Tue, 13 Aug 2002 09:03:52 +0200
On Tue, 13 Aug 2002 08:48:28 +0200
massimiliano.campana@xxxxxxxxxxxxx wrote:

> Non esiste un comando size, sizeof, o simile ?

ls -sk nomefile andrebbe bene? magari con | cut

> ------------------------
> 
> Postgresql:
> volevo riempire una tabella di pgsql con TANTISSIME righe: esiste un
> modo migliore (più veloce) da utilizzare al posto di:
>      for name in 'cat elenco.txt'
>      do psql table -c "INSERT INTO xxx VALUES (...)"
>      done

copio/pasto dal manuale di postgres
psql -c "COPY [ BINARY ] table [ WITH OIDS ]
    FROM { 'filename' | stdin }
    [ [USING] DELIMITERS 'delimiter' ]
    [ WITH NULL AS 'null string' ]"
 

-- 
   (@_  Ivan Fabris, S. Sofia (FC)  PowerPC & Linux Debian Woody  _*)
   //\      www.darthxiong.net   setiathome.ssl.berkeley.edu      /\\
   V_/_     www.folug.linux.it   pgp key @ www.keyserver.net     _\_V
        Socio Fondatore e Consigliere del Forli Linux User Group 


<Prev in Thread] Current Thread [Next in Thread>