#!/bin/bash str="alma:körte:barack:szilva" IFS=':' read -ra tomb <<< "$str" echo ${tomb[0]}