Substitution with sed + bash function

后端 未结 7 2084
一向
一向 2021-01-03 02:26

my question seems to be general, but i can\'t find any answers.

In sed command, how can you replace the substitution pattern by a value returned by a simple bash fun

7条回答
  •  北海茫月
    2021-01-03 02:56

    sed -e 's#[0-3][0-9]/[0-1][0-9]/[0-9][0-9]#& $(parseDates &)#' myfile |
    while read -r line; do
        eval echo "$line"
    done
    

提交回复
热议问题