Skip to content

Instantly share code, notes, and snippets.

@ruario
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruario/ae5a64de6c8d7dab60ea to your computer and use it in GitHub Desktop.
Save ruario/ae5a64de6c8d7dab60ea to your computer and use it in GitHub Desktop.

The following will check the Linux Vivaldi (and Chromium) version installed, withouit having to start it up:

grep -Pao 'Chrome/.Vivaldi(.([0-9]+\.){3}[0-9]+){2}' /opt/vivaldi-snapshot/vivaldi-bin | sed -r 's,.*(([0-9]+\.){3}[0-9]+).(([0-9]+\.){3}[0-9]+).*,Vivaldi: \1\nChromium: \3,'

Note: This requires GNU grep compiled with support for Perl regular expressions.

Here is a less fancy version (without the helpful formatting):

strings /opt/vivaldi-snapshot/vivaldi-bin | grep -xA3 Chrome/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment