I need to read a file and split every line into a domain and a application string
domain.com-backend
domain.com-frontend
For each line I need to call a docker build command (echo just to see the command):
cat $FILE | grep '-' | xargs -I {} echo docker build -t {full} -f apps/{domain}/{application}/Dockerfile .
So in the example I would expect the output
docker build -t domain.com-backend -f apps/domain.com/backend/Dockerfile .
docker build -t domain.com-frontend -f apps/domain.com/frontend/Dockerfile .