I was recently trying to created all unique path names, managed to get the unique names echo $PATH | tr ":" "\n" | sort -u
however I didn't really feel like appending the export PATH = $PATH:
to them manually or through a for loop.
is there any way I can for that, something in the lines for
'echo $PATH | tr ":" "\n" | sort -u | append each 'export PATH=\$PATH:'