From 953a3ddb0b75507b19edc87a724478537313f00b Mon Sep 17 00:00:00 2001 From: Clarth Date: Wed, 13 Dec 2023 22:33:33 -0500 Subject: [PATCH] Add GetModIDs.sh --- GetModIDs.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 GetModIDs.sh diff --git a/GetModIDs.sh b/GetModIDs.sh new file mode 100644 index 0000000..76afa5b --- /dev/null +++ b/GetModIDs.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +#Get a list of modID's from the steam workshop folder of a game +#output will be one modID per line in a txt file + +DIR="/path/to/SteamLibrary/steamapps/workshop/content/294100" +OutputDir="/where/to/put/the/txt/file" + +find $DIR -type d -maxdepth 1 | awk -F'/' '{print $NF}' > $OutputDir/workshop_ids.txt + + +exit