append semicolon to line if not empty bash code example Example: bash add comma to end of line sed "s/$/,/g"