#!/bin/bash
s='column1,column2,column3,column4'
grep -Eo '^[^,]+,' <<< "$s"