savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers] submission of swap - a command line utility to edit


From: dougo99
Subject: [Savannah-hackers] submission of swap - a command line utility to edit files and directory trees. - savannah.gnu.org
Date: Sat, 21 Jun 2003 13:46:18 -0400
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; YComp 5.0.0.0)

A package was submitted to savannah.gnu.org
This mail was sent to address@hidden, address@hidden


Doug O'Dell <address@hidden> described the package as follows:
License: gpl
Other License: GNU General Public License V2 or later.
Package: swap - a command line utility to edit files and directory trees.
System name: swap
Type: GNU

Description:
'swap' is a linux command line utility that simplifies the replacement of 
strings within files.  It is a directory tree editor which employs simple 
syntax to do rapid, global modifications on existing files and directories.

It has currently has two modes of operation, 1) accepting the old-string and 
new-string commands via the command line, or 2) accepting  the string 
replacement commands from the default 'swap.cmd' file.

A simple example of its use is shown:

    swap 'generate_default_code()' 'execute_special_code()' '*.c'

This replaces every instance of the string 'generate_default_code()' with the 
replacement string 'execute_special_code()'
in all the 'C' source files in the current working directory.

For more detailed examples of 'swap' in operation, refer to the embedded 
documentation.  Just invoke 'swap' with no arguments, or type 'swap /h' on the 
command line for the expanded help display.

Other Software Required:
There are no unusual dependencies.  The program compiles with the standard GCC 
compiler.  Internally, the program makes system calls to 'find' and 'chmod', 
which are programs anticipated to be available on any *unix system.

Other Comments:
I am sending the source code: "swap.c, linklist.c, and linklist.h" to 
address@hidden


_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]