#!/bin/bash
# Awk challenge
# Given the following TEAMS array
# _repo_python is the repository name, the "_" character is something we add to each repo name so it must stay.
# Challenge
# 1. Replace all "/" characters with "_"
# 2. All / should be replaced with "_"
# 3. There should not be a duplicate "_" in front of the "_repo_python" so "__repo_python" won't work
TEAMS=(
"team-internal/repo_python"
"team-internal/libs/repo_python"
"team-internal/packages/golang/repo_python"
)
for t in ${TEAMS[@]}; do
echo $t
done
AWK challenges
81 words·1 min