(ns utils (:require [lib :refer [run-cmd]])) (defn run-seq "Run a sequence of shell commands on a sequence of arguments. Examples: 1. Play and delete each video from a folder ls | bb -i '(run-seq [\"mpv\" \"rm\"] *input*)' " [commands arguments] (doseq [argument arguments command commands] (println (run-cmd [command argument]))))