The awk command can make it easy to remove duplicate characters from a string even when those characters aren’t sequential, especially when the process is turned into a script. First, the awk command ...
The moment you chain 7 commands including awk or write a shell script with many subroutines is time to consider a "real" language like perl or python, or even c/c++/java. File operations are a bit ...