@tost it’s silly stuff:
grep -Po "(?<=^ID_LIKE=).+" /etc/os-release || grep -Po "(?<=^ID=).+" /etc/os-releasei want to match if a distro is debian or is debian based, then it’ll have debian in ID or ID_LIKE vars, so i can switch/case it later (when the distro is debian, the ID_LIKE doesn’t exist)
but i’d like a way to not match the second pattern if the first one is already, i found the regex on the internet but it’s perl-flavour, and that one doesn’t require multiple -e patterns, therefore twice and ||
i’d like to combine it to a single call but weather so hot brain melty