Team,
I have this expression that finds all the bazel but I want to list only the parent dir that has it. how could i?
find src/services/ -type f -name 'BUILD.bazel' | sed -r 's|/[^/]||' |sort |uniq |grep -e etl-domain/
output
srcervices/etl-domain/api/BUILD.bazel
srcervices/etl-domain/BUILD.bazel
expected output
srcervices/etl-domain/BUILD.bazel