I have just found this very interesting post on basic and advanced string manipulation in batch files. It really is not to miss if you want to become a command line master!
It explains how to:
It explains how to:
Align Right | Align text to the right i.e. to improve readability of number columns. |
Left String | Extract characters from the beginning of a string. |
Map and Lookup | Use Key-Value pair list to lookup and translate values. |
Mid String | Extract a Substring by Position. |
Remove | Remove a substring using string substitution. |
Remove both Ends | Remove the first and the last character of a string. |
Remove Spaces | Remove all spaces in a string via substitution. |
Replace | Replace a substring using string substitution. |
Right String | Extract characters from the end of a string. |
Split String | Split a String, Extract Substrings by Delimiters. |
String Concatenation | Add one string to another string. |
Trim Left | Trim spaces from the beginning of a string via "FOR" command. |
Trim Quotes | Remove surrounding quotes via FOR command. |
Trim Right | Trim spaces from the end of a string via substitution. |
Trim Right | Trim spaces from the end of a string via "FOR" command. |
No comments:
Post a Comment