Ubuntu Pastebin

Paste from teward at Thu, 7 Apr 2016 15:35:13 +0000

Download as text
1
2
3
4
5
6
7
8
#!/bin/bash

foo='bar baz'
sedreg="'sed s/toReplace/$foo/g'"
sed -i ${sedreg} /testfile


exit $?
Download as text