SourceForge Logo boxenv User Commands (cmd)

chopfix

Usage
chopfix cleavage < input-file > output-file

Description:


The chopfix program simply chops a certain number of characters off of the beginning of every line of the input file, and saves the result to the output file. This program takes only one argument (other than the name of the program it's self) and that is the number of characters to chop off of the beginning of each line.

If a line has fewer characters than the number of characters that is supposed to be chopped off, then a blank line will be passed to the output file in it's place.

Let's now take the following example:
   [~$] chopfix 4 < input.txt > output.txt

Now, let's suppose input.txt has the following contents:

input.txt
Once upon a time,
in another world,
it came to me this way.
oh
it was good.

Then output.txt would look as such:

output.txt
 upon a time,
nother world,
ame to me this way.

as good.