SyntaxFix
Write A Post
Hire A Developer
Questions
This works for me you guys can try it out
INPUT='ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash' SUBSTRING=$(echo $INPUT| cut -d: -f1) echo $SUBSTRING