Project

sherb

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Unix Shell (SH) with Embedded Ruby (ERB)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme
sherb:  a Unix Shell that supports ERB templates
------------------------------------------------

 
$ gem install 'sherb'

$ echo 'echo 1 + 1 = <%= 1 + 1 %>' | sherb
1 + 1 = 2



$ cat > test.sh.erb <<EOF
#!/usr/bin/env sherb
<% 3.times do %>
  echo Hello, world
<% end %>
EOF

$ chmod u+x ./test.sh.erb 

$ ./test.sh.erb
Hello, world
Hello, world
Hello, world