Browse Source

fish: add quick-sed script

master
Alison Watson 1 year ago
parent
commit
325db1179c
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      fish/quick-sed

+ 7
- 0
fish/quick-sed View 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

Loading…
Cancel
Save