Date: Thu, 10 Jan 2002 16:37:45 -0800 From: chip <chip@wiegand.org> To: questions@freebsd.org Subject: txt file from ls -la? Message-ID: <200201101636863.SM01552@there>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201101636863.SM01552>