Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I was doing some complex regex's (porting a random sql dump file into a seeds.rb)

As a vim/cli/linux user -- I'm trying to understand -- you were doing search-and-replace? As in what one (some would say a masochist) could do with sed/awk? And/or 's' in vim?

(Sed is in some ways more relevant as it works on streams, and so as long as you have the diskspace to store the edited copy, size shouldn't really matter. I suppose it might be possible to have long enough lines that sed chokes, but I've never had to deal with something like that...)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: