fish: add quick-sed script

master
an 2019-12-13 18:06:27 -05:00
父節點 3ca440e9f5
當前提交 325db1179c
共有 1 個檔案被更改,包括 7 行新增0 行删除

7
fish/quick-sed Normal file
查看文件

@ -0,0 +1,7 @@
#!/usr/bin/env fish
function quick-sed -d 'Recursively sed files in the current directory' -a i o
find . -type f -exec sed -i -e 's/'$i'/'$o'/g' {} \;
end
## EOF