#!/bin/sh selection=$(cat ~/.cache/tedportal | dmenu -i -l 8) echo $selection IFS="|" read -ra url <<< "$selection" url=$(echo ${url[1]} | xargs) xdg-open "${url[1]}"