Aardvark Shell Utils iconAardvark Shell Utils 1.0

Aardvark Shell Utils package is a collection of 3 utilities designed to aid the user when working with shell scripts.
Aardvark Shell Utils package is a collection of 3 utilities designed to aid the user when working with shell scripts, or from the shell command line. All three accept their input on the command line, or from standard input, and thus they can be piped (|) with other commands. These three commands come with their own man page.

The Aardvark Shell Utils collection includes the three utilities below:

realpath

Realpath is an implementation of the realpath function for returning the canonicalized absolute pathname of an input path.

This lets you generate an absolute pathname with all symlinks resolved and all '.' and '..' characters removed. Many commands do not work well with relative paths or paths containing symlinks. Realpath will let you cresolve these absolute paths. Since it can be used in a sequence of piped commands, as well as with a command line argument, realpath is very friendly to both shell script authors and interactive shell users.

Please see the included manpage in the man/ dir for more info.

You will need a system with a realpath function. (This is pretty standard ANSI C stuff.)

It is possible that your realpath call will not return an absolute path in some circumstances (reports of Solaris behaving like this have surfaced).

filebase

Filebase returns the base portion of a filename, that is the filename with its extension (e.g. .txt) removed. It works by returning everything preceeding the last period in the input string. The period itself is not returned.

fileext

Fileext returns the extension portion of a filename (e.g. txt). It works by returning everything following the last period in the input string. The period itself is not returned.

last updated on:
February 6th, 2008, 13:27 GMT
price:
FREE!
developed by:
Joe Laffey
license type:
GPL (GNU General Public License) 
category:
ROOT \ System \ Shells

FREE!

In a hurry? Add it to your Download Basket!

user rating 20

UNRATED
2.1/5
 

0/5

1 Screenshot
Aardvark Shell Utils

Add your review!

SUBMIT