Chop and Behead

Chop head or tail off text file before/after a text marker

Chops the end ends off text files either before or after a marker string. The companion Behead utility chops the beginnings off files before or after a marker string. chop.jar [-q] -charset="UTF-8" -before="xxx" -after="yyy" [-s] files and dirs -q = quiet. Suppress progress messages. -charset= what character set the file is, uses platform default if you leave it out. -before= the string to look for in the file. The tail end of the file is chopped off starting just before this marker. The marker is case-sensitive. -after= the string to look for in the file. The tail end of the file is chopped off starting just after this marker. You must have either -before or -after but not both. The marker is case-sensitive. -s= also process subdirs, then a list of files and directories, multiples but no wildcards supported yet. Neither -before nor -after can be regexes. It is almost impossible to specify a regex on the command line without the command line processor messing it up. For details on possible encodings and how to tell which encoding a file is using, see "encoding" in the Java glossary. behead.jar [-q] -charset="UTF-8" -before="xxx" -after="yyy" [-s] files and dirs What are these utilities for? I wrote them when a bug tacked on junk to my files. I wrote it to strip off the junk. It can be useful is screenscraping to peel footers or headers off the pages you download. Why the axe icon? It symbolises chopping the end off a file or beheading.

Changes: Now allows you to chop both the heads and tails off files.

Minimum requirements: Java 1.7+

Operating system: Win2000,WinXP,Win7 x32,Win7 x64,Windows 8,WinServer,WinVista,WinVista x64,Unix,Linux,Mac OS X,Java

Program URL: http://mindprod.com/products1.html#CHOP

Chop and Behead screenshot

...

Special permissions

You may include the Chop on any CD compilation.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more