]> Sergey Matveev's repositories - dotfiles.git/blobdiff - go/bin/go-fix-bash
Split huge bin/ to proper subdirectories
[dotfiles.git] / go / bin / go-fix-bash
diff --git a/go/bin/go-fix-bash b/go/bin/go-fix-bash
new file mode 100755 (executable)
index 0000000..5a10855
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+find . -name "*.bash" -exec perl -i -npe 's%^#!/usr/bin/env bash%#!/bin/sh%' {} \+
+find . -name "*.bash" -exec perl -i -npe 's%^#!/bin/bash%#!/bin/sh%' {} \+
+find . -name "*.bash" -exec perl -i -npe 's%^bash %sh %' {} \+
+perl -i -npe "s/ulimit/echo --/g" src/run.bash