SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other aardvark_shell_utils-1.0-1.i386.rpm

FILEBASE

Section: Aardvark Shell Utils (1)
Updated: Dec. 23, 2003
Index 

NAME

filebase- returns the base of a filename (everything before the last '.'). 

USAGE

filebase<filename> 

DESCRIPTION

filebasetruncates all characters after the last occurence of '.' (period) in afilename, including the period itself, and prints the resulting filename tothe standard output.

If the input filename does not contain a period the entire filename is echoedback unchanged.

If the input filename contains a '/' (slash) only the portion after the last slash is considered to be the filename.

If no command line arguments are given thenfilebasewill read from standard input, and thus it can be used in pipes. Standardinput will be processed one line at a time, which each filename on each linebeing processed separately. 

EXAMPLES


        > filebase foo.txt
        foo
        >
        > filebase foo.txt.gz
        foo.txt
        >

 

RETURN VALUES

filebasereturns zero on success, non-zero on failure. Note that the absence of aperiod in the input string does NOT consitute a non-zero return value.

 

SEE ALSO

basename(1) dirname(1) fileext(1) realpath(1)

 

BUGS

Report bugs to <softwareAATTlaffeycomputer.com>

 

CONTRIBUTORS

Original code:
Joe Laffey <softwareAATTlaffeycomputer.com>

 

UPDATES

filebaseis part of theAardvark Shell Utilities

Official Aardvark Shell Utilitieswebsite:

http://www.laffeycomputer.com/shellutils.html


 

Index

NAME
USAGE
DESCRIPTION
EXAMPLES
RETURN VALUES
SEE ALSO
BUGS
CONTRIBUTORS
UPDATES

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector