How would I go about replacing part of a string with another part of that same string, in a bash script, using
closed as not a real question by Gilles, vonbrand, jasonwryan, rahmu, manatwork Mar 24 '13 at 10:32
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
Your question is a bit too generic here.
Would replace the first two characters of each line with the two last ones (only if there are at least 4 characters on those lines).
The trick is to use