tag:blogger.com,1999:blog-17889588.post513654135403528621..comments2024-03-13T07:14:55.283+01:00Comments on chem-bla-ics: Why I like Linux, it's fast! Or, a quick typo fix in the CDK.Egon Willighagenhttp://www.blogger.com/profile/07470952136305035540noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-17889588.post-58789407536743091592011-03-25T07:48:51.445+01:002011-03-25T07:48:51.445+01:00Hej Tobias,
thanx for the tip. I am personally fo...Hej Tobias,<br /><br />thanx for the tip. I am personally fond of Cygwin, bringing me POSIX to the windows platform. awk, perl, grep, pipe are a (de facto) standard. These tools are not tied to Linux.<br /><br />The title of this post sucks indeed. It seems to imply a causal effect. What I meant was that I can work so efficiently on my laptop with Linux installed. It misses the GNU aspect, it doesn't reflect that GNU tools are available for other platforms, BSD and MS-Windows.<br /><br />Sorry for being inaccurate, and thanx for the pointers!Egon Willighagenhttps://www.blogger.com/profile/07470952136305035540noreply@blogger.comtag:blogger.com,1999:blog-17889588.post-47839698373599370812011-03-25T07:41:51.053+01:002011-03-25T07:41:51.053+01:00Hi Egon,
I agree under LUNIX its much easier and p...Hi Egon,<br />I agree under LUNIX its much easier and portable, once you know awk, grep and pipe.<br /><br />Find and replace text in multiple files under Windows (XP,Vista,7) is possible with teh Mircosoft Powershell (one line):<br /><br />(get-childitem . -Include *.txt -Recurse) | select-string "CDK" -list |% { (get-content $_.Path) |% { $_ -replace "CDK", "XDK" } | set-content $_.Path }<br /><br />The command replaces all CDK strings with XDK in all *.txt in all subfolders. Its quite fast too.<br /><br />Other than that I would use Eclipse or Visual C++ Express to find and replace text under WIN.<br /><br />And then again its probably easier to write a 5 liner in JAVA instead of learning powershell.<br /><br />Or use Find And Replace Text<br />FART -r *.txt XDK CDK<br /><br />http://sourceforge.net/projects/fart-it<br /><br />Cheers<br />TobiasAnonymousnoreply@blogger.com