Profile
Achievement
bubnoff's Recent Snippets
- All /
« Prev 1 Next »
Here's a quick one-off trick for sed editing conf files on remote hosts. I will
post the core sed command first, showing the crazy quoting, then a for loop demonstrating how one might tackle multiple hosts. Took me a few tries to get the quoting so...
0
597
posted 13 years ago by bubnoff
For use in bash script. First two lines are an example of usage. This is one of several solutions to this problem. Works well for cleaning database output. Takes a regex and two files as arguments - first one is raw db output - second is merged outpu...
1
959
posted 14 years ago by bubnoff