The AROS Archives(anonymous IP: 54.82.29.141,89) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Categories

   o Audio (49)
   o Datatype (3)
   o Demo (26)
   o Development (193)
   o Document (17)
   o Driver (18)
   o Emulation (55)
   o Game (308)
   o Graphics (119)
   o Library (17)
   o Network (42)
   o Office (9)
   o Utility (169)
      o Archive (14)
      o Benchmark (7)
      o Communication (0)
      o Docky (1)
      o Filetool (16)
      o Hardware (5)
      o Misc (32)
      o Print (3)
      o Scientific (17)
      o Shell (23)
      o Text (30)
         o Convert (6)
         o Edit (14)
         o Misc (5)
      o Workbench (17)
   o Video (18)

Total files: 1043

Full index file. Download
Recent index file. Download




Hosted by
aros-exec.org
 Readme for:  Utility » Text » gsar-1.21.i386-aros.lha

gsar

Description: cli utility to search and replace text in files
Download: gsar-1.21.i386-aros.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 109kb
Version: 1.21
Date: 26 Mar 17
Author: T. Tjaberg and H.P. Verne
Submitter: Paolo Besser
Category: utility/text
License: Other
Distribute: yes
FileID: 1591
 
Comments: 0
Snapshots: 0
Downloads: 24  (Current version)
24  (Accumulated)
Votes: 1 (0/0)  (30 days/7 days)

[Show comments] [Show snapshots] [Show content] [Replace file] 
Short:        General Search And Replace 1.21
Author:       emufan-eab (at) yandex.com
Uploader:     paolo.besser (at) gmail.com
Type:         util/cli
Version:      1.21
Architecture: i386-AROS
Distribution: Aminet
Date:         2017-03-26

Description:

AROS i386 build of gsar, originally found on aminet. Compiled by P. Besser
please read the full readme files and documentation provided in the
archive.

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.

Example:

- replace string FORM with TEST in file image.iff
gsar -o -sFORM -rTEST image.iff

- display search and replace strings only
gsar -B -sFORM -rTEST image.iff

- display ascii search result only
gsar -sFORM -c16 image.iff

- display hex search result only
gsar -sFORM -x16 image.iff




Copyright (c) 2005 The AROS Archives All Rights Reserved
Contact us at: archives@aros-exec.org