Founds lots of examples in my search... however all it's doing is printing to the screen and not saving the file.
This is being ran with strawberry perl on windows 2008 server. The reason I'm here asking is 1. Most win admins would say use powershell, however i'm having a harder time getting it to work than perl.
here's what i have. Our filemaker database (don't laugh we're in the process of replacing it) generates a CSV file. However filemaker can't export in all caps. So I need to change this file, then ftp to another company.
1. Change all Text to Uppercase. I read and got the following to work:
Code:
perl -pe "$_= uc($_)" File1.csv > allcapsfile.txt
2. Remove the "'s from the file completely.
Code:
perl -pe s/\"//g allcapsfile.txt
This code just prints it to screen and not to a file. That's where I'm struggling.
I can remove the quotes using powershell but can't fix the caps. I guess I could write a .cmd that utilizes perl for one and powershell for the other... but I'd rather stick with one language.
If anyone has any advice I'd love to hear it. If this is the wrong place on the forums I apologize and will move it asap.