Re: How can I FTP a file from one UNIX box to other UNIX box using xcomtp.



On 30 Oct 2006 19:31:51 -0800, Ambarish
<ambarishj@xxxxxxxxx> wrote:
Hi,
I want to ftp a large file(10 GB) from one unix box to other. Can
anybody plesae tell how can I achieve that using xcomtp command. Also,
I want to check whether there is any record which is greater than 2500
bytes. If it is so, I want to redirect that record to some other file.
This re-direction is to be done before FTP.

Never heard of xcomtp, and neither have Yahoo or Google. Perhaps you
misspelled it?
Do you want the records larger than 2500 bytes to go only to the other
file, or to both files?

awk 'length>2500{print >>"otherfile";next}
{print | "ssh user@otherhost cat > remotefile"}' largefile


--
QOTD:
Talent does what it can, genius what it must.
I do what I get paid to do.
.



Relevant Pages