From: Julian Leviston Date: 2010-11-29T10:04:27+09:00 Subject: Re: How to use Ruby like shell script? derp. ---------------------------------------------- Buy my new album! 16 Sep 2010: http://itunes.apple.com/au/album/erste-zeit/id393326346 On 29/11/2010, at 10:32 AM, Stu wrote: > lol I just figured out one way to make your ls command into an array. > in a single line. > > x = `ls`.split > > or > > x = `echo *`.split > > on more info on the shell and what it can take look at the man page `man sh` > > http://www.freebsd.org/cgi/man.cgi?query=sh > > ~happy hacking =) >