Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321811 - app-misc/gsar-1.21 - a General Search And Replace utility (binary safe)
Summary: app-misc/gsar-1.21 - a General Search And Replace utility (binary safe)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard: sunrise-suggested
Keywords: EBUILD
: 520176 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-28 11:38 UTC by Mathias Weigt
Modified: 2014-08-19 08:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-apps/gsar-1.21.ebuild (gsar-1.21.ebuild,490 bytes, text/plain)
2010-05-28 11:42 UTC, Mathias Weigt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Weigt 2010-05-28 11:38:25 UTC
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), 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. 

Reproducible: Always
Comment 1 Mathias Weigt 2010-05-28 11:42:36 UTC
Created attachment 233251 [details]
sys-apps/gsar-1.21.ebuild

This is the last version I found (dating from 2008). I propose sys-apps as a category (like grep)
Comment 2 Mathias Weigt 2010-05-28 11:42:55 UTC
I was looking for a program which could do binary search and replace on the commandline. And I found this very useful (helped me patching ~400 Files in very little time)
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-06-07 12:02:08 UTC
Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Thanks,
On behalf of the Gentoo Sunrise Team,
Michael "not a sunrise member yet" Weber.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-19 08:57:28 UTC
*** Bug 520176 has been marked as a duplicate of this bug. ***