Why do you care about the sed dependency? It&#x27;s a basic unix command that everyone has. Unless there&#x27;s some strong time penalty, it&#x27;d be better to use sed over some weirdass bash syntax.