random scripts I use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines

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