Skip to content

Instantly share code, notes, and snippets.

View AllPurposeBen's full-sized avatar

Ben Mason AllPurposeBen

View GitHub Profile
@AllPurposeBen
AllPurposeBen / Match Version Number or Higher.bash
Created March 24, 2023 14:46 — forked from talkingmoose/Match Version Number or Higher.bash
Generates a regular expression (regex) that matches the provided version number or higher. Useful for Jamf Pro's "matches regex" operator in searches and smart groups where the results need to be the current version of an app or higher.
#!/bin/bash
<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Professional Services Engineer
Jamf
bill@talkingmoose.net
https://gist.github.com/2cf20236e665fcd7ec41311d50c89c0e