#/bin/sh feed="$(xclip -o)" file="$HOME/repositories/bookmarks/feeds.txt" if grep -q "^$feed$" "$file";then notify-send "Failed" "Already in the feed!" else notify-send "Success" "$feed added to the file!" echo "$feed" >> "$file" fi