Text Formatting Perl Script

Here is a pretty basic Perl script that will take a tab seperated file and format it accoring to the arguments you pass with the command. This script will only work if the file has three fields, but can be edited for more. I am working on a way to unlimit this using arrays, but have not found a working solution yet. Also, this script is protable to windows. Just edit the environment path to reflect where your perl executable is located. Code below:

So a text file like this…

bigboi 4492 texas
lilmama 4677 alaska
sugamama 9755 Cali

Will print out like this when you run the command as follows:

Linux, Microsoft Office, Perl Scripts, Tutorials/Whitepapers, Windows

Leave a Reply

Comment
Name*
Mail*
Website*