[NTLUG:Discuss] Output to Multiple Files - Now More
Fred James
fredjame at fredjame.cnc.net
Thu Apr 7 11:34:43 CDT 2005
David Wilson wrote:
>My goal is to capture a forensic image of a hard drive
>to a dd type of file. I need to split it into chunks
>(FAT32 limitation). My process requires that I have
>two copies of the files when complete. I am trying to
>save the time required to make a copy. If I can write
>out both copies at once it will save a considerable
>amount of time.
>
>Any suggestions?
>
>David
>
>
>
David Wilson
Man page on split:
"NAME
split - split a file into pieces
SYNOPSIS
split [OPTION] [INPUT [PREFIX]]
DESCRIPTION
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...;
default
PREFIX is `x'. With no INPUT, or when INPUT is -, read standard
input.
"
So maybe ...
dd if=/dev/sdb | split -b 640m
for i in `ls x??`
do
cat $i | tee /path_1/$i /path_2/$i_2 2>&1 /dev/null
done
...maybe?
Regards
Fred James
--
Compassion alone stands apart from the continuous traffic between good and evil proceeding within us. "Om Mani Padme Hum"
More information about the Discuss
mailing list