Cancelled

Chop Lines from Top and Tail of File

Hi there,

We have loads of big BIG text files (50MB-1GB with 100,000+ lines).

We want a Windows script/program or .NET code snippet to chop the first and last line out of them IF they match the following format.

(note: GNU utils ported to windows CAN be used)

Top line eg:

ACTIVITY|6|13-JUL-2007 22:10:00

Botton line eg:

ACTIVITY|6|13-JUL-2007 22:11:00|122

So, an example of use would be:

[url removed, login to view] file=c:my [url removed, login to view] saveas=c:my [url removed, login to view]

The top and bottom lines are removed only if they match the format shown above. The file is saved under the same name if no "saveas" paramter is there.

You does NOT have to work EXACTLY like this, so suggestions welcome!

We think this is a TINY job for someone who's done it before, so don't we'd ideally like to pay $30-$40.

Thanks, and good luck!

Tobin

Skills: .NET, Linux

See more: tail net line, top work, example note, code top, top job, chop lines file, job suggestions, top, tobin, someone from, snippet, name suggestions, my top, loads, exe file, 100 lines code, linux snippet, linux code snippet, tiny job, line exe, pay top, top pay, example shown, last saved, top bottom code

About the Employer:
( 1 review ) Leeds, United Kingdom

Project ID: #189300