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