- 扩展模式:使用 -E 参数可以开启扩展模式,开启后,则可以不用添加 “\”来引用特殊字符,如() + 等。开启前后对比
开启前:sed ‘s/(season[0-9])(.+)\/(Scene[0-9])-.*([0-9])[.]mp3/\1-\3-\4.mp3/g’
开启后:sed -E ‘s/([[:digit:]]+)/0&/g;s/Season 0[/]Scene ([0-9]{2}).mp03/\1-\2.mp3/g’`
开启前:sed ‘s/(season[0-9])(.+)\/(Scene[0-9])-.*([0-9])[.]mp3/\1-\3-\4.mp3/g’
开启后:sed -E ‘s/([[:digit:]]+)/0&/g;s/Season 0[/]Scene ([0-9]{2}).mp03/\1-\2.mp3/g’`
No comments yet.
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.
Powered by WordPress