String manipulation: extracting a part of a string, text replacement, formatting to a given width, etc.
Use this tag for questions about string manipulation, especially in but not limited to shell scripts (use shell or the specific tag for the shell or other language you're using as appropriate).
For questions about batch processing of text files, see text-processing. If the string is a file name or path, use filenames in addition to or instead of string. For questions about bypassing the interpretation of special characters, see quoting.