Save file as git-mvs in your path and then:
find -name '*file' -print0 | xargs -r0 git mvs 's/foo/bar/g'
or in zsh:
git mvs 's/foo/bar/g' **/*file
import ceylon.collection { | |
MutableMap | |
} | |
object help { | |
shared dynamic createEmptyObj; | |
dynamic { | |
createEmptyObj = eval("(function(){return {};})"); | |
} | |
} |
#!/bin/bash | |
# This file should be installed in the remote repository as: | |
# - <path-to-bare-repo.git>/hooks/update if you have a bare repository | |
# - <path-to-regular-repo>/.git/hooks/update if you have a regular repository | |
set -e | |
refname="$1" | |
oldrev="$2" |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>ban-unwanted-dependencies</id> | |
<goals> | |
<goal>enforce</goal> | |
</goals> |
#!/bin/bash | |
if [ "$1" = "-profile" ]; then | |
exec ${HOME}/firefox-20.0/firefox "$@" | |
echo Failed to start Firefox | |
exit 1 | |
fi | |
exec /usr/bin/firefox "$@" |
#!/usr/bin/perl | |
# takes black&white xpm file on input and produces "RLE compression" integer array on output | |
use strict;use warnings; | |
for (my $i=0; $i<5; ++$i) { <>; } | |
my $a = ""; | |
while(<>) { | |
chomp; | |
s!^"!!; | |
s!"(?:,|\};)!!; | |
$a .= $_; |
import ceylon.collection { | |
MutableMap | |
} | |
shared object help { | |
// Don't create functions taking >= 1 arguments until 1.2.1 because that triggers bug 5808 | |
shared dynamic createEmptyObj; | |
// could use this instead but then it limits arguments and return types to not be "dynamic" | |
//shared Callable<Return,Args> uncurryThis<Return,Args,ThisType>(Callable<Return,Tuple<Nothing,ThisType,Args>> f); | |
dynamic { |
import java.awt.event { | |
KeyEvent | |
} | |
import java.lang { | |
Runnable, | |
JBoolean=Boolean, | |
JLong=Long | |
} | |
import java.lang.reflect { | |
Field |
shared dynamic MyInterface { | |
shared formal String foo; | |
} | |
shared void run() { | |
dynamic { | |
console.log("-----"); | |
dynamic dyn = eval("({foo: 'bar'})"); | |
console.log(dyn); | |
MyInterface my = eval("({foo: 'bar'})"); |
Save file as git-mvs in your path and then:
find -name '*file' -print0 | xargs -r0 git mvs 's/foo/bar/g'
or in zsh:
git mvs 's/foo/bar/g' **/*file
These scripts convert PHP serialized object format e.g.
a:2:{i:2;a:4:{s:5:"title";s:5:"Hello";s:5:"count";i:0;s:12:"hierarchical";i:0;s:8:"dropdown";i:0;}s:12:"_multiwidget";i:1;}
to YAML format:
---
2:
title: Hello
count: 0