Replace Cmdline search replace tool files or stdin & stdout cat file.txt | replace -yaml="[{s: cats, r: dogs}]" cat file.txt | replace -json={"s":"cats","r":"dogs"}