grep
과 유사하지만 강력한 치환 기능을 제공.sed
와 달리 줄 단위 편집에 제한되지 않음. 더 많은 정보: https://github.com/nevdelap/ned.
ned --ignore-case --recursive '{{^[dl]og}}' {{.}}
ned --colors '{{^[dl]og}}' {{.}}
ned --colors=never '{{^[dl]og}}' {{.}}
ned --recursive --exclude '{{*.htm}}' '{{^[dl]og}}' {{.}}
ned '{{dog}}' --replace '{{cat}}' {{.}}
ned '{{the ([a-z]+) dog and the ([a-z]+) dog}}' --replace '{{the $2 dog and the $1 dog}}' {{.}}
ned '{{([a-z]+) dog}}' --case-replacements --replace '{{\U$1\E! dog}}' --stdout {{.}}
ned '{{^[sb]ad}}' --replace '{{happy}}' --stdout {{.}}