Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Perl: Stripping last 4 characters from string
Name: jb60606 Date: July 1, 2009 at 12:27:06 Pacific OS: Mac OS X 10.5.6 CPU/Ram: Octo 2.8Ghz Xeon Product: Apple / MAC PRO Subcategory: General
Comment:
How do I strip the last 4 characters of a string? I've been trying to use substr, though since the length of what I want returned is variable, I don't get desired results.
Summary: Hi Guys, I'm a newbie to batch programming. I had created a batch file to read a line from a text file. example: Hello world 1234 However i would like to pass the last 4 characters to a variable. Any ...
Summary: I have a large file of text, with exactly 34 characters on each line. I want to run a batch to remove the last 2 characters of each line so that I have 32 characters on each line. Been trying to do th...
Summary: Yes, I agree, cmd.exe is powerfull too now, can do a lot of things, but with much more twisted lines of batch scripting than what is needed. But TCC makes these much faster to code and easier to execu...