#!/bin/bash for i in $(find /Users/samuel -name .DS_Store) do if [[ "$i" != "/Users/samuel//Desktop/.DS_Store" ]] then echo "$i" fi done