From: Reid Thompson Date: 2009-03-06T22:50:00+09:00 Subject: Re: add a new line after, w/txtfile thats comma delimited On Thu, 2009-03-05 at 22:38 -0500, Reid Thompson wrote: > Mmcolli00 Mom wrote: > > Reid is that for rake only? > I don't understand your question. > > $ ruby -pe 'gsub(/,/, "\n")' file*.txt > > The above can be executed from the command line, from a shell script, from a > `backtic` command, or a system command, etc... Is that what you are asking? > > > btw see > http://www.fepus.net/ruby1line.txt > analogous to > > google search for > sed one liners > perl one liners > python one liners > lang of choice one liners > > $ ruby -pe 'gsub(/,/, " comments\n")' file*.txt