From: David Masover Date: 2008-07-23T13:23:38+09:00 Subject: Re: system admin script On Sunday 20 July 2008 11:04:45 Phlip wrote: > Dir.chdir 'foo' do > Pathname.new('bar').unlink > end And this is an example of when a shell script may be more appropriate. Ruby is great as soon as you need just about any structure at all, but I wouldn't use it for what would be a one-liner in the shell, except to call that one-liner in the shell: system 'cd foo; rm bar' Or even: rm 'foo/bar' It would help if we knew more about what's needed by that script.