Basic Script Needed

Basic Script Needed

am 30.08.2011 20:51:33 von AndrewMcHorney

Hello

It has been a while since I have done some serious Perl programming. I am looking for a basic script that will take a very large file and split it up into a manageeable files that can be emailed and then a script that will merge the files back. Has anyone created such a script. I have a large map file that I need to send out but cannot use a thumb drive in my work envirornment now. I could take the time to write the 2 scripts but I do not have the time at the moment. This is not for a commercial job or for a school assignment.

Thanks,
Andrew

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Basic Script Needed

am 30.08.2011 21:11:27 von Shawn H Corey

On 11-08-30 02:51 PM, andrewmchorney@cox.net wrote:
> Hello
>
> It has been a while since I have done some serious Perl programming. I am looking for a basic script that will take a very large file and split it up into a manageeable files that can be emailed and then a script that will merge the files back. Has anyone created such a script. I have a large map file that I need to send out but cannot use a thumb drive in my work envirornment now. I could take the time to write the 2 scripts but I do not have the time at the moment. This is not for a commercial job or for a school assignment.
>
> Thanks,
> Andrew
>

If you're on Linux, see:
man split
man cat


--
Just my 0.00000002 million dollars worth,
Shawn

Confusion is the first step of understanding.

Programming is as much about organization and communication
as it is about coding.

The secret to great software: Fail early & often.

Eliminate software piracy: use only FLOSS.

"Make something worthwhile." -- Dear Hunter

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Basic Script Needed

am 30.08.2011 21:21:24 von Shlomi Fish

Hi Andrew,

On Tue, 30 Aug 2011 14:51:33 -0400
wrote:

> Hello
>=20
> It has been a while since I have done some serious Perl programming. I am
> looking for a basic script that will take a very large file and split it =
up
> into a manageeable files that can be emailed and then a script that will
> merge the files back. Has anyone created such a script. I have a large map
> file that I need to send out but cannot use a thumb drive in my work
> envirornment now. I could take the time to write the 2 scripts but I do n=
ot
> have the time at the moment. This is not for a commercial job or for a sc=
hool
> assignment.
>=20

well, first of all, I should note that this mailing list is intended for Pe=
rl
programmers to teach Perl to people who want to learn Perl (or learn Perl
better). It is not a "please find or write a script for me" mailing list, a=
nd
most people won't write a script for you for free.

That put aside, I recalled that the UNIX split
( see http://en.wikipedia.org/wiki/Split_%28Unix%29 ) and its cat command (=
see
http://en.wikipedia.org/wiki/Cat_%28Unix%29 ) can do what you want, and you=
can
find Perl implementations of them and many other UNIX commands here:

* http://sourceforge.net/projects/ppt/

* http://ppt.cvs.sourceforge.net/viewvc/ppt/

Hope it helps, and if you're grateful, then I would appreciate a donation,
either to me ( http://www.shlomifish.org/meta/how-to-help/ ) or to the Perl
Foundation ( https://secure.donor.com/pf012/give ).

Regards,

Shlomi Fish

--=20
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

No one calls Xena the warrior princess â€=9CZeenaâ€=9D to her face =
and survives.
Luckily for you, she hasnâ€=99t visited the modern day United States ye=
t.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Basic Script Needed

am 31.08.2011 03:13:07 von Rob Dixon

On 30/08/2011 19:51, andrewmchorney@cox.net wrote:
>
> It has been a while since I have done some serious Perl programming.
> I am looking for a basic script that will take a very large file and
> split it up into a manageeable files that can be emailed and then a
> script that will merge the files back. Has anyone created such a
> script. I have a large map file that I need to send out but cannot
> use a thumb drive in my work envirornment now. I could take the time
> to write the 2 scripts but I do not have the time at the moment. This
> is not for a commercial job or for a school assignment.

Hi Andrew.

This seems to be somebody else's problem. To do your work you need to
distribute a file that is larger than any means available will support.
You should go to your manager or customer and ask what they would have
you do.

Depending on the size and the likely frequency of updates I would go
with an internet shared file.

Rob


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Basic Script Needed

am 31.08.2011 14:14:50 von Paul Johnson

On Tue, Aug 30, 2011 at 02:51:33PM -0400, andrewmchorney@cox.net wrote:
> Hello
>
> It has been a while since I have done some serious Perl programming. I am looking for a basic script that will take a very large file and split it up into a manageeable files that can be emailed and then a script that will merge the files back. Has anyone created such a script. I have a large map file that I need to send out but cannot use a thumb drive in my work envirornment now. I could take the time to write the 2 scripts but I do not have the time at the moment. This is not for a commercial job or for a school assignment.

Perhaps you are looking for mailshar, which is part of GNU sharutils?

--
Paul Johnson - paul@pjcj.net
http://www.pjcj.net

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/