filed in Linux, Mac OS X, Tips, Unix on May.03, 2012
If you’re using a Unix or Unix-like operating system you can leverage the GNU iconv library to validate the encoding of a file or files. Although, the GNU iconv library is actually meant to do file conversions, it can still be used in a way that will give you some understanding if the file(s) contain [...]
Tags: encoding, gnu, iconv, libiconv, utf-8, utf8
filed in Algorithms on Aug.24, 2010
GNU Grep has been around for decades. This is a common *nix tool for searching named input files for lines containing a match to a given pattern. The original author, Mike Haertel, has a post on the FreeBSD mailing list describing why its so far compared to the BSD implementation of Grep. There are a [...]
Tags: boyer-moore, fast string, gnu, grep