This is me, Wu!
Lang: bash
Get the source!
Actions
Recent Pastes
python471881152 ( febrero 23, 2012 at 08:18)
MySQL (MarcosBL febrero 17, 2012 at 18:55)
my first iptables script (Wu febrero 16, 2012 at 10:48)
debian ovh server eth weird error (Wu febrero 13, 2012 at 10:10)
ledger currencies (betabug enero 22, 2012 at 20:11)
currency (betabug enero 18, 2012 at 16:29)
ledger (b diciembre 29, 2011 at 23:55)
sed parser for templates (Wu diciembre 17, 2011 at 18:59)
hg diff after mistery pull (bebu diciembre 17, 2011 at 16:10)
mailcap (bebu diciembre 16, 2011 at 11:11)
About
This is the paste site from e-shell.org, my personal website. It is an instance of the CodeSharingZ Zope Product (just take a look at http://zopecode.codigo23.net/wiki/CodeSharingZ to learn more about it). Feel free to paste whatever you want, but notice that all the pastes in here are deleted in a regular basis.
Links
L bash
(http://www.gnu.org/software/bash/bash.html)

sed parser for templates

 1 #!/bin/sh
 2 
 3 echo "Prepare to Parse..."
 4 
 5 for i in `ls *.html`
 6  do
 7   echo "Parsing $i"
 8   sed -e "s/include\ '/include\ 'beyle\//g" $i > temp
 9   cat temp > $i
10   sed -e 's/extends\ "/extends\ "beyle\//g' $i > temp
11   cat temp > $i
12  done
13 
14 echo "Cleaning up ...."
15 rm temp
16 
17 echo "Cleaned up, finished"
Pasted by Wu on diciembre 17, 2011 at 18:59 | Lang: bash | (17 lines of code)