I am trying to understand one of the bash scrip. There I landed at below sed command, as far as I know, sed replaces first set with 2nd set, but I am confusing at [ ]*, could you please help me what it does.
complete command.
sed 's/[ ]*|||[ ] */|||/g'
I have executed command by taking a sample file , wherever it see 3 pipes , it is replacing with again ||| pipes.
If that so, I am not able to understand the command, why do we replace same characters