skip to Main Content

Ubuntu – How to sed the "\" in variable in bash

The following bash is used to replace the "$source_product" with "$source_product" + "linefeed" + "$target_product". Here is the bash script: source_product="$(LOCAL_DIR)/source \" target_product="$(LOCAL_DIR)/target \" echo "source_product: $source_product" echo "target_product: $target_product" echo "" echo "--- replace source with source+target ---" echo…

VIEW QUESTION
Back To Top
Search