Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.545.493 Times

sh_config 0.1

  Date Added: February 24, 2010  |  Visits: 557

sh_config

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)



sh_config is following on from my perl_config configuration file parser, I set about writing a similar tool using ksh. I wanted to parse a configuration file of variable assignments, and then use eval to assign these internally within the script, making them available for use inside the script. I could have sourced the assignments in using the "dot" operator but I decided against this - a hapless (or malicious) user could easily insert commands into the sourced file causing all manner of problems. I just wanted plain old assignments to be read - so sh_config was born. Sample Configuration File sh_config will parse configuration files of the following general form.... # This is a comment which will be ignored # So is this # Note - whitespace doesnt matter in assignments # but a variable name cannot contain whitespace (the value can) backup_dir = /some/directory another_variable = some assignment # inline comment some_var=some_val Within the download tarball, youll find two files. The sh_config script itself, and a sample configuration file, sh_config.conf. Read the notes at the top of the script and the comments throughout for further information..

Requirements: No special requirements
Platforms: Linux
Keyword: Config Configuration Configuration File File File Parser Following Following On Following On From I Set About Libraries My Perl Set About Sh Shconfig Using
Users rating: 0/10

License: Freeware Size: 2.05 KB
USER REVIEWS
More Reviews or Write Review


SH_CONFIG RELATED
File Management  -  Quicken QIF file class and conversion 1.0
This script contains a simple class to represent a Quicken (QIF) file, and a parser to load a QIF file into a sequence of those classes.
 
File Restoration  -  !R-Linux Data Recovery 1.0
R-Linux is a data recovery and undelete utility for Ext2FS (Linux) file system. File recovery after power failure, system crash, virus infection or partition reformation, even for the different file system. Unformat and unerase tool. Creation of...
1.35 MB  
Libraries  -  X12::Parser::Readme 0.08
X12::Parser::Readme is a Perl module for understanding configuration (cf) files for X12::Parser. X12 transactions ASC X12 standards define commonly used EDI transactions. The standards define a structure/format for exchange of EDI data. Each...
19.46 KB  
Utilities  -  BareTail 3.50a
A free real-time log file monitoring tool: * Real-time file viewing * Follow tail mode (like tail -f on Unix) * View files of any size (> 2GB) * Scroll to any point in the file instantly * Configurable highlighting * Monitor multiple files...
215.04 KB  
Specialized Tools  -  NPE File Analyzer 1.1.2.1
NPE File Analyzer is a utility that allow users to view and edit 32bit and 64bit Portable Executable (PE) files, such as .EXE .DLL and .SYS files. NPE provides functions for inspection of unknown binaries, you can analyze sections, resources,...
8.11 MB  
Code Management Tools  -  ProGuard 3.9 / 4.0 Beta
ProGuard is a free Java class file shrinker, optimizer, and obfuscator. ProGuard project can detect and remove unused classes, fields, methods, and attributes. It can then optimize bytecode and remove unused instructions. Finally, it can rename...
 
File Utilities  -  Apache File Manager 0.19
The Apache::FileManager module is a simple HTML file manager. It provides file manipulations such as cut, copy, paste, delete, rename, extract archive, create directory, create file, edit file, and upload files. It also has the ability to rsync...
12.29 KB  
Libraries  -  File::Util 3.22
File::Util is an easy, versatile, portable file handling module. File::Util provides a comprehensive toolbox of utilities to automate all kinds of common tasks on file / directories. Its purpose is to do so in the most portable manner possible...
41.98 KB  
Libraries  -  File::Headerinfo::Video 0.03
File::Headerinfo::Video is an extractor of useful information from video files. File::Headerinfo::Video uses Video::Info to read the headers of video clips (of various kinds) and a few audio files, and extract from them the useful information we...
48.13 KB  
File Utilities  -  Magican File 1.2.0
MagicanFile is a professional program for Mac OS X that let you search and manage files on your disks. Search files on disk - MagicanFile supports files search in any directory in Hard Disk and Flash Disk, you may define partition or folder as...
964.88 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB