From: <an...@gm...> - 2009-08-05 17:43:37
|
Well vi let's you do a regex search and replace and will tell you how many rows affected, then you can do an undo.... Voila! Alec Sent via BlackBerry by AT&T -----Original Message----- From: "Richard Lynch" <ce...@l-...> Date: Wed, 5 Aug 2009 12:06:28 To: Chicago PHP User Group<chi...@li...> Subject: Re: [chiPHPug-discuss] Text Editors line count should be trivial in any editor, really... A decent Regular Expression search / count, built into the editor will probably be the harder one to find. Asking a bunch of developers which editor to use is generally futile. We all have our own preferences, and have invested too much time in fine-tuning the editor of choice (or sometimes of no-choice) to fit our needs. If *other* users will be stuck with using the editor you pick, I highly recommend you solicit their opinion before picking -- You may end up having to convince the Department to install several well-known editors, as you are unlikely to get concensus. PS Put me down for recommending 'vim', though I'm not sure it's right for you, even though it's perfect for me. You get the line count trivially. Searching for lines that match would be a matter of typing: /HD.*as.*01.*286.*441~ / starts the search . matches any character * means 0 or more Counting the matches is probably trivial in vi, but I've never had to do that, as I just pop out to shell with grep -c for that. PPS If you get them to install cygwin with several editors and grep, then you have a great deal more flexibility. On Tue, August 4, 2009 3:46 pm, Roderick Thomas wrote: > For those of you who I haven't met . . . > > I'm a novice programmer. And I'm also an data analyst working in a > restrictive environment for the State of Michigan. This being the > case, it's highly unusual for our Department of Information & > Technology > to allow us to install software that has not been pre-approved by a > host > of committees. However, my recent duties require me to calculate the > total number of records (rows) in text files in order to meet certain > format requirements. For this reason, I am in need of a text editor > more advanced than Notepad or Wordpad--one that at least displays row > counts. Since a text editor of that sort has not been pre-approved, I > have been granted permission to test open source editors to recommend > as > state-approved software. Of course, I would like to take full > advantage > of this opportunity. For my personal interests I would like to test > editors that are also useful for PHP and MySql. Java, Drupal, and > other > platforms would be a plus. But most importantly, for state business I > would need features like sorting, searching, data manipulation, and > other stuff based on certain unique formats. > > > For example, I may want to identify or count strings that look like > these: > > HD*as*01*286*441~ > REF*zz*20090731***~ > INS*1*20090701-20090731*y*x*04~ > > Thanks. Your feedback is greatly appreciated. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |