#!/bin/bash sv_scripts_dir="/home/kevin/coding/spotify-lib-vis/src/scripts" systemd_dir="/etc/systemd/system" script_name="update-history" for ext in "service" "timer" ; do filename="$script_name"."$ext" sudo ln -s "$sv_scripts_dir"/"$filename" "$systemd_dir"/"$filename" done