From owner-freebsd-questions@FreeBSD.ORG Fri May 2 16:58:18 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27EBB37B401 for ; Fri, 2 May 2003 16:58:18 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2501E43FAF for ; Fri, 2 May 2003 16:58:17 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h42NwCUv091403; Sat, 3 May 2003 09:58:12 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.1])h42NwBg9067323; Sat, 3 May 2003 09:58:11 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Sat, 3 May 2003 09:58:11 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Jerry McAllister In-Reply-To: <200305022353.h42NreOY018887@clunix.cl.msu.edu> Message-ID: <20030503095717.G67119-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Zeros and ones X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 23:58:18 -0000 On Fri, 2 May 2003, Jerry McAllister wrote: > It is easy and convenient to use /dev/zero to write out a number of > zero bytes to somewhere - as in: > > dd if=/dev/zero of=zerofile bs=512 count=1770000 > or > dd if=/dev/zero of=/dev/da1 bs=512 count=1770000 > > But, I would like to write all ones - as in 0xff or maybe some > other pattern - as if there was a /dev/one also. > > Is there a nice way to do this using UNIXistic stringing existing > stuff together? Or do I have to write a little piece of code? > > Thanks for any [positive] suggestions. > > ////jerry Play around with jot(1). -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/