Home > OS >  SED to match replacement problems
SED to match replacement problems

Time:09-17

A file version number can be removed under the directory, file name rp02 - ota - v1.0.0. Zip

BASE_OTA_VER=$(ls - r $OTA_PATH/${IBD_PROJECT} - ota - *. Zip | head - n 1 | sed -e 's #' $OTA_PATH '/' $IBD_PROJECT '- the otas - v \ \ (. *) \. Zip $# 1 # p \')
Echo "$BASE_OTA_VER
"
Why always get:


Line breaks and repeated again!!!!!! Please help to analysis
  • Related