This talk aims to go through basic scripting skills in Ruby. Participants will have a better understanding in managing their daily tasks with scripting. For example, we can setup automated scripts to delete old files on a daily basis instead of doing it manually. These can be done with Bash, Perl and many other scripting languages, but among of which Ruby is better known for its readability. It is easier to write, maintain, and reuse. It saves some time on system management and allows us to put more focus on the projects.
39. Managing Scripts
• Change the following line in your ‘.bashrc’:
export PATH=“/user/bin:/usr/local/bin”
• To:
export PATH=“/user/bin:/usr/local/bin:/scripts”
• And you can do:
> hello
41. Recap
• Scripts are small programs solving small
problems
• Scripts are case-specific
• Automation saves energy & time
• Managing scripts with rake