Email: bknpk@hotmail.com Phone: +972-54-7649119


V

 

ASIC/FPGA Design and Verification Out Source Services

Trim line to 80 or less characters in a text file.

This page is for sharing a perl script for line length control.

  1. Sometimes you receive a text file with extremely long lines. This makes the file not convenient to read. If a line contains spaces, it will be easier to read, if such a long line is broken on space limits to lines of maximum 80 characters.

  2. The script tries to have as much as characters as possible in a given text line with the above constraints.

  3. Should a line be greater than 80 characters and there are no spaces in it, it will not be broken.

  4. The script is written in perl. It uses perl index function rather than regexp to achieve better performance.

  5. The script is available at: perl script

  ...


I would be happy to offer my services. Call ASAP !


Home

Send mail with Kmail & DCOP

Run a perl script from vim on a specified text block and convert verilog registers and wires to VHDL signals.






Search This Site




new pages on this site