Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Create A Daily Notes File Using A Ruby Shell Script

DZone's Guide to

Create A Daily Notes File Using A Ruby Shell Script

·
Free Resource
The following snippet launches a new gedit file with todays date when executed from a bash script.

gedit `ruby -e "puts %q(m/notes%s.txt) % Time.now.strftime('%d%m%y')"`

observed: gedit starts with a new file called notes050210.txt in the ~/m directory.
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}