0

I'm trying to write a shell script that lists versions of specific packages that are installed. However, this command does not display what version of Notepad++ is installed:
notepad-plus-plus --version
What is the correct command to find this info?

  • 1
    That is program specific and chosen by the programmer/developer. If you know the programmer's background you could guess how he/she would likely provide clues (eg. '--help' if GNU background for help, '-h' or '-?' for BSD etc...) That's how I'd look for it; '--version' implies GNU background, '-v' for .... '-V'... We far from the early 1970s so there are many many standards developers can choose from. – guiverc Dec 3 '19 at 3:43
  • 1
    snap list | awk '/notepad-plus-plus/ {print $2}' – Terrance Dec 3 '19 at 4:01
  • notepad-plus-plus is not a package and not even a file installable from Ubuntu packages. How did you get it? – Melebius Dec 3 '19 at 7:23
  • @Melebius A snap installation of a Windows application... – andrew.46 Dec 3 '19 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.