Score:0

Using bash check which Google-Chrome release channel I have installed

it flag

Using google-chrome --version, it shows me the version but in my case I don't care, I just want some bash command to show me inside the output only the string: google-chrome-stable , or google-chrome-beta, or google-chrome-dev, or google-chrome-canary; giving priority to the most stable release channel if there are multiple channels installed on the computer.

How do I get this?

Score:0
bs flag
knu

Consider this solution in a slightly different environment. Plain version output:

$ chromium-browser --version
BlueALSA detected - Disabling audio sandbox
Chromium 92.0.4515.98 Built on Raspbian , running on Raspbian 10

We want to get rid of error and warning messages, and select the version string. So, redirect stderr to /dev/null, and use awk to grab the second field.

$ chromium-browser --version 2>/dev/null | awk '/^Chromium/{print $2}'
92.0.4515.98

Modify this for your situation and you're done.

it flag
<Using `google-chrome --version`, it shows me the version but in my case I don't care> That's just what I have said I don't need, I need to get release channel (stable, beta, dev, canary).
knu avatar
bs flag
knu
Sorry, I misunderstood.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.