[NTLUG:Discuss] Output to Multiple Files
Patrick R. Michaud
pmichaud at pobox.com
Thu Apr 7 07:41:01 CDT 2005
On Thu, Apr 07, 2005 at 04:24:17AM -0700, David Wilson wrote:
> I am looking for a little help in finding a tool that
> will let me send the output of an script into to
> simultaneous file locations. For example, I will
> read in the contents of a floppy diskette using dd, I
> would like the out put to go to two different
> locations at the same time. At the present time, I
> have to run the command twice, once for each location.
> I also read in large hard drive volumes using dd so
> simply making a copy of the dd image file is not a
> solution since it takes too much time.
>
> Any suggestions?
Perhaps the tee(1) command will do what you want here?
dd if=/dev/floppy of=- | tee file1 >file2
Pm
More information about the Discuss
mailing list