Gsar for Windows

Gsar: general search and replace utility




gsar (General Search And Replace) is a utility for searching for and --- optionally --- replacing strings in both text and binary files. The search and replace strings can contain all kinds of characters (0--255), i.e. Ctrl characters and extended ASCII as well.

The algorithm used is a variation of the Boyer-Moore search algorithm, modified to search binary files. As a result of this, gsar is blindingly fast.

Opposed to line oriented search programs (like grep(1)), gsar will find all matches on a line. Actually, gsar doesn't know anything about lines at all, all files and strings are treated as binary.

Gsar can search one or several files for a string and report the occurrences. Gsar can read one file, search for a string, replace it with some other string, and create a new file containing the changes. Gsar can perform a search and replace in multiple files, overwriting the originals. Finally, gsar can work as a filter, reading from standard input and writing to standard output.




DescriptionDownloadSizeLast changeMd5sum
• Complete package, except sources Setup  359027 30 January 2008  b2b9181501f408160fc6df39aa147fda
• Sources Setup  330308 30 January 2008  11ae6ba1fa771386055af4ee1b0b58fb
• Binaries Zip  23415 30 January 2008  170f0fa73dfff47f963fdcda38aee6b6
• Documentation Zip  45847 30 January 2008  c522c3c577a17aa95b68892bd0cc6d76
• Sources Zip  41806 30 January 2008  b11bd278d76d6aeb1350233f46b1bd06
• Original source

You can also download the files from the GnuWin32 files page. New releases of the port of this package can be monitored.

Installation, Usage and Help

General Installation Instructions

GnuWin32 Help (feature requests, bugs, etc)


gsar,1.21,gnu,win32,win32s,win64,gnuwin32,i386,ia64,x86-64, gnuwin64,gnuwin,mswindows,ms-windows,windows,95,98,me,nt,2000,2k,xp,2003,vista