You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
215 B
Fish
7 lines
215 B
Fish
10 years ago
|
function replace --description 'Find and replace by a given list of files.'
|
||
|
set find_this $argv[1]
|
||
|
set replace_with $argv[2]
|
||
|
|
||
|
ag -l $find_this $argv[3..-1] | xargs sed -i '' "s/$find_this/$replace_with/g"
|
||
|
end
|