ned

ned

TLDR

Recursively search starting in the current directory, ignoring case

>_ ned --ignore-case --recursive '[^[dl]og]' [.]
copy

Search always showing colored output

>_ ned --colors '[^[dl]og]' [.]
copy

Search never showing colored output

>_ ned --colors=never '[^[dl]og]' [.]
copy

Search ignoring certain files

>_ ned --recursive --exclude '[*.htm]' '[^[dl]og]' [.]
copy

Simple replace

>_ ned '[dog]' --replace '[cat]' [.]
copy

Replace using numbered group references

>_ ned '[the ([a-z]+) dog and the ([a-z]+) dog]' --replace '[the $2 dog and the $1 dog]' [.]
copy

Replace changing case

>_ ned '[([a-z]+) dog]' --case-replacements --replace '[\U$1\E! dog]' --stdout [.]
copy

Preview results of a find and replace without updating the target files

>_ ned '[^[sb]ad]' --replace '[happy]' --stdout [.]
copy

Copied to clipboard
free 100$ digital ocean credit