From owner-freebsd-questions Thu Jan 10 16:35:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pioneernet.net (mail.pioneernet.net [207.115.64.224]) by hub.freebsd.org (Postfix) with ESMTP id 2B9C237B404 for ; Thu, 10 Jan 2002 16:35:24 -0800 (PST) Received: from there [66.114.152.128] by pioneernet.net (SMTPD32-6.06) id A39220FD0050; Thu, 10 Jan 2002 16:36:34 -0800 Content-Type: text/plain; charset="iso-8859-1" From: chip To: questions@freebsd.org Subject: txt file from ls -la? Date: Thu, 10 Jan 2002 16:37:45 -0800 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200201101636863.SM01552@there> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I would like to create a file I can import into mysql that consists of th= e=20 names and sizes of all the files in a directory. The files are images. I=20 tried ls -la > images.txt, expecting to get all the info from ls -la, but= =20 that gave me the file names only. I could just type them all into the=20 database but there are apr. 2500 files, so the file import would be much=20 easier. How can I get the names and sizes only into a text file? --=20 Chip www.wiegand.org <+><+><+><+><+><+><+><+> Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit patc= h to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition. <+><+><+><+><+><+><+><+> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message