Main > Free Download Search >

Free command line parser software for linux

command line parser

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 5320
Command Line WRAPper 0.3.0

Command Line WRAPper 0.3.0


Command Line WRAPper is a tool to build and run commands from input lines. more>>
Command Line WRAPper is a tool that provides an easy way to build and run commands from input lines, avoiding the use of shell script. It is similar to xargs.

clwrap can make great things with the locate command, and is low resource intensive. It can also do some not-quite-fun works like multiple configure/make/make install after a fresh system installation. In practice, you have to generate a list of files/directories you want to manage, clwrap takes it in standard input and apply the command you want to apply for each files (lines) in input.

But you can do much more, in fact, its up to you to find how to use it ;).

examples:

- copying several files into one specific directory:

locate myfiles | clwrap -e cp {} mydir/

- renaming several files:

ls -1 ultra*
| clwrap -e "echo -n mv -v {}" -e "echo {} | sed s/ultra/ /"
| clwrap -e {}

- running a specific line in the shell history:

history | grep "482" | head -n 1 | sed s/ *[0-9]* *// | clwrap -v -e {}


- try all tv norms and frequency tables possible combinations with scantv:

cat norm
| clwrap -e "cat freq | clwrap -e echo scantv -n {} -f {}"
| clwrap -e {} > file 2>&1

- reformat source code, after a backup of course:

ls -1 | clwrap -e "cp {} {}.orig && flip -u {} && cat {}
| sed s/^[ t]*$//;/^$/d
| indent -kr -bad -bap -bbb -sob -i8 -l100 {} -o {}.tmp
&& mv {} tmp && mv {}.tmp {}"
<<less
Download (0.042MB)
Added: 2005-04-04 License: GPL (GNU General Public License) Price:
1664 downloads
C++ Command Line Library 0.3

C++ Command Line Library 0.3


C++ Command Line Library provides a framework for handling command line options and arguments. more>>
C++ Command Line Library provides a framework for handling command line options and arguments. Either variables (of any type) are set to values given at the command line. Or user defined functions are called with arguments (of any type) read from the command line.
It was developed and tested using kdevelop 2.1 and gcc 2.95.3 on SuSE Linux 7.3.x
Main features:
- Easy extraction of command line arguments
- Automatic conversion of command line arguments to any type (even user defined classes)
- Convenient handling of command line usage errors by exceptions
- Complete documentation
- And all this is absolutely free
<<less
Download (0.83MB)
Added: 2006-11-15 License: LGPL (GNU Lesser General Public License) Price:
1084 downloads
Command line Calculator 1.01

Command line Calculator 1.01


Command Line calculator CLC is the calculator that can calculate direct at the linux console. more>>
Command Line calculator "CLC" is the calculator that can calculate direct at the Linux console.

Extract the CLCC file to /usr/bin you might need to login as root or equvalent account, to be able to access it whenever you need it.

Then just write CLCC 67+89 and the answer will be presented to you directly.

CLCC calculates from left to right with no exceptions. CLC also have some extra parameters that is sent to CLC using backslash parameters.

CLCC r2 10/3 this will round the result to 2 decimals you can use 1 to 9 if you want to round the sum of.

the r parameter can also be combined with the other parameters but it must be added first like this

CLCC r3c 10/3 - to get 10 diveded with 3 rounded down to 3 decimals.

CLCC is tested with Ubuntu 6.10 and Puppy OS 2.13 but should work with any Linux version in console mode.

The program is developed using Hotbasic for Linux and is Freeware, hope you find it useful, send and email if you have any questions.

Hotbasic is a basic language that compiles into assembler direct, no interpeter that slows down the code, just pure assembler.

So if you want assembler in Linux but doesnt want to code in nasm, HotBasic is the compiler for you.
<<less
Download (0.006MB)
Added: 2007-02-16 License: Freeware Price:
985 downloads
MIME::Parser 5.420

MIME::Parser 5.420


MIME::Parser is a experimental class for parsing MIME streams. more>>
MIME::Parser is a experimental class for parsing MIME streams.

SYNOPSIS

Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait.
Ready? Ok...

Basic usage examples

### Create a new parser object:
my $parser = new MIME::Parser;

### Tell it where to put things:
$parser->output_under("/tmp");

### Parse an input filehandle:
$entity = $parser->parse(*STDIN);

### Congratulations: you now have a (possibly multipart) MIME entity!
$entity->dump_skeleton; # for debugging

Examples of input

### Parse from filehandles:
$entity = $parser->parse(*STDIN);
$entity = $parser->parse(IO::File->new("some command|");

### Parse from any object that supports getline() and read():
$entity = $parser->parse($myHandle);

### Parse an in-core MIME message:
$entity = $parser->parse_data($message);

### Parse an MIME message in a file:
$entity = $parser->parse_open("/some/file.msg");

### Parse an MIME message out of a pipeline:
$entity = $parser->parse_open("gunzip - < file.msg.gz |");

### Parse already-split input (as "deliver" would give it to you):
$entity = $parser->parse_two("msg.head", "msg.body");

Examples of output control

### Keep parsed message bodies in core (default outputs to disk):
$parser->output_to_core(1);

### Output each message body to a one-per-message directory:
$parser->output_under("/tmp");

### Output each message body to the same directory:
$parser->output_dir("/tmp");

### Change how nameless message-component files are named:
$parser->output_prefix("msg");

Examples of error recovery

### Normal mechanism:
eval { $entity = $parser->parse(*STDIN) };
if ($@) {
$results = $parser->results;
$decapitated = $parser->last_head; ### get last top-level head
}

### Ultra-tolerant mechanism:
$parser->ignore_errors(1);
$entity = eval { $parser->parse(*STDIN) };
$error = ($@ || $parser->last_error);

### Cleanup all files created by the parse:
eval { $entity = $parser->parse(*STDIN) };
...
$parser->filer->purge;

Examples of parser options

### Automatically attempt to RFC-1522-decode the MIME headers?
$parser->decode_headers(1); ### default is false

### Parse contained "message/rfc822" objects as nested MIME streams?
$parser->extract_nested_messages(0); ### default is true

### Look for uuencode in "text" messages, and extract it?
$parser->extract_uuencode(1); ### default is false

### Should we forgive normally-fatal errors?
$parser->ignore_errors(0); ### default is true
Miscellaneous examples
### Convert a Mail::Internet object to a MIME::Entity:
@lines = (@{$mail->header}, "n", @{$mail->body});
$entity = $parser->parse_data(@lines);

<<less
Download (0.38MB)
Added: 2006-11-17 License: Perl Artistic License Price:
1073 downloads
Tk::CmdLine

Tk::CmdLine


Tk::CmdLine contains process standard X11 command line options and set initial resources. more>>
Tk::CmdLine contains process standard X11 command line options and set initial resources.

SYNOPSIS

Tk::CmdLine::SetArguments([@argument]);

my $value = Tk::CmdLine::cget([$option]);

Tk::CmdLine::SetResources((@resource | $resource) [, $priority]);

Tk::CmdLine::LoadResources(
[ -symbol => $symbol ]
[ -file => $fileSpec ]
[ -priority => $priority ]
[ -echo => $fileHandle ] );

Process standard X11 command line options and set initial resources.

The X11R5 man page for X11 says: "Most X programs attempt to use the same names for command line options and arguments. All applications written with the X Toolkit Intrinsics automatically accept the following options: ...". This module processes these command line options for perl/Tk applications using the SetArguments function.

This module can optionally be used to load initial resources explicitly via function SetResources, or from specified files (default: the standard X11 application-specific resource files) via function LoadResources.

<<less
Download (5.7MB)
Added: 2007-08-21 License: Perl Artistic License Price:
794 downloads
Command Line Content Management System 0.6

Command Line Content Management System 0.6


Command Line Content Management System is my own command line content management system. more>>
Command Line Content Management System is my own command line content management system. Its not a dynamic cms, but a script that takes a source tree and creates a web site out of it.
The idea came to me when i was using m4 for my website to generate the HTML, but i did not like the idea that i was still typing HTML in my pages, even if it was simplified by using macros. I was updating a wiki page somewhere when it hit me: i wanted a command line system that was able to take wiki style input for page content. The result is clcms.
Its in beta state at the moment, mostly to try out some different approaches to various
challenges. But i thought id share it now, so if youre interested and might have some ideas on where to go from here, drop me a line (or a patch). At least it can build this site and the tutorial site, but anything more fancy will probably not work.
Its also a way for me to learn Python, so i might in my ignorance produce some weird constructs here and there. Please let me know, but be gentle.
Main features:
- Updates should be possible with a terminal and an editor
- Content is stored in a directory tree
- Adding pages (or items?) should be as easy as creating a new file and typing some lines in it.
- For default pages/items no config necessary
- No HTML, XML or anything alike for normal usage
- All pages have their binary content (images, download files) in the directory of the page itself
- All output is static, no generating on the fly
Usage:
After untarring the tarball, add < dir>/bin to your path or copy bin/clcms.py to a directory in your path.
You can now go to < dir>/examples/documentation and build the tutorial by running
clcms.py
Now wasnt that easy?
Point your browser to file://< dir>/examples/documentation/out/index.html and see the result of all your hard work.
If it did not work, its not your fault. Just remember that version number.
Enhancements:
- .page files can now contain content attributes.
- Filename extensions are removed and replaced by attribute lines in .page files.
- The page.meta file should now be called page.attr.
- The nomenu option had disappeared in a previous release, and has been put back.
<<less
Download (0.024MB)
Added: 2006-03-21 License: GPL (GNU General Public License) Price:
1312 downloads
Makefile::Parser 0.11

Makefile::Parser 0.11


Makefile::Parser is a Simple Parser for Makefiles. more>>
Makefile::Parser is a Simple Parser for Makefiles.

SYNOPSIS

use Makefile::Parser;

$parser = Makefile::Parser->new;

# Equivalent to ->parse(Makefile);
$parser->parse or
die Makefile::Parser->error;

# Get last value assigned to the specified variable CC:
print $parser->var(CC);

# Get all the variable names defined in the Makefile:
@vars = $parser->vars;
print join( , sort @vars);

@roots = $parser->roots; # Get all the "root targets"
print $roots[0]->name;

@tars = $parser->targets; # Get all the targets
$tar = join("n", $tars[0]->commands);

# Get the default target, say, the first target defined in Makefile:
$tar = $parser->target;

$tar = $parser->target(install);
# Get the name of the target, say, install here:
print $tar->name;

# Get the dependencies for the target install:
@depends = $tar->depends;

# Access the shell command used to build the current target.
@cmds = $tar->commands;

# Parse another file using the same Parser object:
$parser->parse(Makefile.old) or
die Makefile::Parser->error;

# Get the target who is specified by variable EXE_FILE
$tar = $parser->target($parser->var(EXE_FILE));

This is a parser for Makefiles. At this very early stage, the parser only supports a limited set of features, so it may not recognize some advanced features provided by certain make tools like GNU make. Its initial purpose is to provide basic support for another module named Makefile::GraphViz, which is aimed to render the building process specified by a Makefile using the amazing GraphViz library. The Make module is not satisfactory for this purpose, so I decided to build one of my own.

<<less
Download (0.018MB)
Added: 2006-10-24 License: Perl Artistic License Price:
1098 downloads
Randomize Lines 0.2.6

Randomize Lines 0.2.6


Randomize Lines (rl) is a command-line tool that reads lines from an input file or stdin. more>>
Randomize Lines (rl) is a command-line tool that reads lines from an input file or stdin, randomizes the lines and outputs a specified number of lines. It does this with only a single pass over the input while trying to use as little memory as possible.
I wrote rl in my spare time mainly to be able to select a random audio file to play when my toast is done (script in combination with find and sleep). Another reason was to familiarize myself with autoconf and friends.
The most recent version of this page can be found at http://ch.tudelft.nl/~arthur/rl/.
Warning: rl is software in development. The command line options and default behavior may change between releases.
Another Warning: I have mostly lost interest in this project and am not planning on doing much development on it any more. I will however still accept patches and fix important bugs (this more or less contradicts the previous warning).
Enhancements:
- A dangerous example was removed from the manual page and was replaced by several benign ones.
<<less
Download (0.12MB)
Added: 2007-06-15 License: GPL (GNU General Public License) Price:
861 downloads
Exemplar: An XML Parser Generator 0.1

Exemplar: An XML Parser Generator 0.1


Exemplar is free software designed to make it easier to work with XML. more>>
Exemplar is free software designed to make it easier to work with XML. Exemplar: An XML Parser Generator was started as a program to generate the smallest possible parser for a given vocabulary of XML. While it still retains the capability to do this, it is now a more general program intended to support conversion of specifications of XML vocabularies (DTDs, Schemas, etc) into useful code.
Main features:
- Input from DTD
- Output to Java (SAX versions 1.0 and 2.0)
- Output to XSLT
- Output to DTD
- Command line and Ant user interfaces
Benefits
Save Programmer Time
XML is supposed to be easy to parse, but its very easy to get wrong. Offload your programming efforts to Exemplar and you can spend more of your time working on the core functionality of your application.
Save Space
Working in a space constrained environment? Exemplar can create SAX-compatible parsers as small as 5kb. No more need to hand write XML parsers to make them fit your environment.
Free Software
Exemplar is distributed under a permissive, BSD-style license (OSI approved). This means that youll never have to worry about integrating Exemplar with your own work, whether its commercial or not.
<<less
Download (0.16MB)
Added: 2007-01-10 License: BSD License Price:
1021 downloads
Arg_parser 1.0

Arg_parser 1.0


Arg_parser is an argument parser tht follows POSIX and GNU conventions for command line arguments. more>>
Arg_parser is an argument parser that follows POSIX and GNU conventions for command line arguments. Arg_parser is implemented as a C++ class, and is simpler, easier to use, and safer that "getopt_long".
Arg_parser does not modify its arguments, nor uses any global variables. So you may create more than one parser in your program if you need or want to. Arg_parser can also parse options from configuration files.
To use Arg_parser in your own programs simply copy the files "arg_parser.h" and "arg_parser.cc" in your sorce tree. See also the file "main.cc" for an example of use.
Enhancements:
- The license has been updated to GPL version 3 or later.
<<less
Download (0.017MB)
Added: 2007-07-01 License: GPL (GNU General Public License) Price:
845 downloads
MP3::M3U::Parser 2.20

MP3::M3U::Parser 2.20


MP3::M3U::Parser is a MP3 playlist parser. more>>
MP3::M3U::Parser is a MP3 playlist parser.

SYNOPSIS

use MP3::M3U::Parser;
my $parser = MP3::M3U::Parser->new(%options);

$parser->parse(*FILEHANDLE, $scalar, "/path/to/playlist.m3u");
my $result = $parser->result;
my %info = $parser->info;

$parser->export(-format => xml,
-file => "/path/mp3.xml",
-encoding => ISO-8859-9);

$parser->export(-format => html,
-file => "/path/mp3.html",
-drives => off);

# convert all m3u files to individual html files.
foreach () {
$parser->parse($_)->export->reset;
}

# convert all m3u files to one big html file.
foreach () {
$parser->parse($_);
}
$parser->export;

MP3::M3U::Parser is a parser for M3U mp3 playlist files. It also parses the EXTINF lines (which contains id3 song name and time) if possible. You can get a parsed object or specify a format and export the parsed data to it. The format can be xml or html.

<<less
Download (0.018MB)
Added: 2006-11-07 License: Perl Artistic License Price:
1086 downloads
Biblio::Document::Parser 1.10

Biblio::Document::Parser 1.10


Biblio::Document::Parser Perl module is a document parsing framework. more>>
Biblio::Document::Parser Perl module is a document parsing framework.

Biblio::Document::Parser provides generic methods that should be overriden by specific parsers. This class should not be used directly, but rather be overridden by specific parsers. Parsers that extend the Document::Parser class should at least override the parse method.

METHODS

$docparser = Biblio::Document::Parser->new()

The new() method creates a new parser instance.

@references = $parser->parse($lines, %options)

The parse() method takes either a content string or an IO::Handle, and returns an array of reference strings.

<<less
Download (0.19MB)
Added: 2007-04-02 License: Perl Artistic License Price:
935 downloads
Shell::Parser 0.04

Shell::Parser 0.04


Shell::Parser is a simple shell script parser. more>>
Shell::Parser is a simple shell script parser.

SYNOPSIS

use Shell::Parser;

my $parser = new Shell::Parser syntax => bash, handlers => {

};
$parser->parse(...);
$parser->eof;

This module implements a rudimentary shell script parser in Perl. It was primarily written as a backend for Syntax::Highlight::Shell, in order to simplify the creation of the later.

<<less
Download (0.017MB)
Added: 2007-04-06 License: Perl Artistic License Price:
934 downloads
Bigtop::Parser 0.16

Bigtop::Parser 0.16


Bigtop::Parser is the Parse::RecDescent grammar driven parser for bigtop files. more>>
Bigtop::Parser is the Parse::RecDescent grammar driven parser for bigtop files.

SYNOPSIS

Make a file like this:
config {
base_dir `/home/username`;
Type1 Backend {}
Type2 Backend {}
Type3 Backend {}
}
app App::Name {
table name { }
controller SomeController {}
}
Then run this command:
bigtop my.bigtop all

This module is really only designed to be used by bigtop. It provides the grammar which understands bigtop files and turns them into syntax trees. It provides various utility functions for bigtop (or similar tools you might write) and for backends.

Reading further is an indication that you are interested in working on Bigtop and not just in using it to serve your needs.

<<less
Download (0.37MB)
Added: 2006-09-28 License: Perl Artistic License Price:
1121 downloads
cadaver 0.22.5

cadaver 0.22.5


cadaver is a command-line WebDAV client for Unix. more>>
cadaver is a command-line WebDAV client for Unix. cadaver project supports file download, upload, on-screen display, namespace operations (move/copy), collection creation and deletion, and locking operations.

cadaver is free software, distributed under the GNU GPL. Patches, bug reports, questions and so on should be sent to the mailing list (for which an archive is also available).

<<less
Download (0.70MB)
Added: 2007-01-24 License: GPL (GNU General Public License) Price:
1004 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5