SyntaxFix
Write A Post
Hire A Developer
Questions
Try this in pure bash:
FRED="/some/random/file.csv:some string" a=${FRED%:*} echo $a
Here is some documentation that helps.