#!/bin/bash scripts=$(ls scripts) for script in $scripts; do sudo rm /usr/local/bin/$script done