Skip to content

Instantly share code, notes, and snippets.

@s-hemer
s-hemer / bamptool-completion.bash
Created August 24, 2023 14:19
Auto-completionscript for bmaptool
#/usr/bin/env bash
function exists_in_list()
{
LIST=$1
DELIMITER=$2
VALUE=$3
[[ "$LIST" =~ ($DELIMITER|^)$VALUE($DELIMITER|$) ]]
}