
TRIM your source-code clean and healthy
THIS SOFTWARE IS PROVIDED "AS IS" AND USE OF THE SOFTWARE IS AT YOUR OWN RISK. BERTRAM SIMON DISCLAIMS ANY AND ALL WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD-PARTY RIGHTS. BERTRAM SIMON DOES NOT WARRANT THAT THE SOFTWARE IS FREE OF DEFECTS.
TRIM is a little command line tool for Windows 2000 / Windows XP. It helps you to keep your source code slim and clean. You can use it to delete needless whitespace at the start or at the end in every line of your code. You can trim empty lines and convert windows text-files to unix format (CRLF 2 LF).
Since I could not find a tool like this on the internet, I wrote this tool myself. I use it to clean the HTML and PHP pages in my projects.
TRIM [/F:file] [/L] [/R] [/E] [/C] [/B] [/S]
/F:file points to an existing text-file.
/L removes spaces from the left side of the text
/R removes spaces from the right side of the text
/E removes empty lines the text
/C convert carriage return/line feed to line feed
/B creates a backup from the original file
/S trim file/s in directory and sub directories
/ROT47 obfuscate text via rot47
examples: TRIM /F:c:\txt\sample.txt
TRIM /F:*.html /L /R /E /C /B /S