From owner-freebsd-questions Mon Apr 23 3:45:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (everest.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 22F7E37B424 for ; Mon, 23 Apr 2001 03:45:30 -0700 (PDT) (envelope-from wash@everest.wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 14rae7-0008UH-00 for freebsd-questions@freebsd.org; Mon, 23 Apr 2001 10:20:31 +0300 Date: Mon, 23 Apr 2001 10:20:31 +0300 From: Odhiambo Washington To: FBSD-Q Subject: Overwrite files Message-ID: <20010423102031.A32235@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , FBSD-Q Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD everest.wananchi.com 4.3-STABLE FreeBSD 4.3-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Nairobi, KE, East Africa. X-Uptime: 10:18AM up 1 day, 4:25, 3 users, load averages: 0.15, 0.12, 0.26 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Suppose I have so many files with different filenames (which I'd like to retains, including the ownership perms) and I'd like to ovewrite the contents of all those files with /dev/null at one go, is there a simpler way than cp /dev/null filename?? TIA -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286, 00100-NAIROBI,KE. This quote is taken from the Diamondback, the University of Maryland student newspaper, of Tuesday, 3/10/87. One disadvantage of the Univac system is that it does not use Unix, a recently developed program which translates from one computer language to another and has a built-in editing system which identifies errors in the original program. --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE649e/n7LIsuxjem8RAuLRAKCLepUY2XHXAYJtWRvAeBLivua1MACbBf3Y V/ZPA43aoKEjEHShRFigFF8= =LODx -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message