GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    aliss (aliss@outerheaven.club)'s status on Monday, 19-Sep-2022 02:15:02 JSTalissaliss
    in reply to
    • Tosti ?

    @tost it’s silly stuff:

    grep -Po "(?<=^ID_LIKE=).+" /etc/os-release || grep -Po "(?<=^ID=).+" /etc/os-release

    i 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

    In conversationMonday, 19-Sep-2022 02:15:02 JST from gnusocial.jppermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.