grep -E instead

This commit is contained in:
Yair Morgenstern
2021-07-02 13:45:48 +03:00
committed by GitHub
parent 254c439031
commit c93a8978c7

View File

@ -75,7 +75,7 @@ jobs:
shell: bash shell: bash
run: | run: |
## To test this in Windows PS: cat .\changelog.md | wsl grep -Pzo --color '\\#{2}.3.15.7[^\\#]*?\\#{2}' ## To test this in Windows PS: cat .\changelog.md | wsl grep -Pzo --color '\\#{2}.3.15.7[^\\#]*?\\#{2}'
grep -P '\#{2}.3.15.7' changelog.md # grep to get only our release grep -E '\#{2}.3.15.7.*?\#' changelog.md # grep to get only our release
#echo "$r" #echo "$r"
#r="${r//'%'/'%25'}" # Multiline escape sequences for % #r="${r//'%'/'%25'}" # Multiline escape sequences for %
#r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n' #r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'