assign variable with sed not working code example Example: assign variable with sed not working comp=$(echo "$fullName" | sed 's/ //g')