########################################################################
#
# /u/sonmi/bin/path_uniq
#
# this script makes components of a PATH like string unique cand prints
# it to stdout
#
# parameters
# ----------
# PATH
#
# options
# -------
# -d delimiter - default :
# -s shortens the path
#
# usefull enhancements: in the usage part, try to guess what was meant as
# a path and echo it to stdout to not break for PATHs with blanks
#
########################################################################
sub usage {
print STDERR "usage $0 [-s] [-d ] PATH\n";
print STDERR " this script makes components of the PATH unique, if you\n";
print STDERR " pass in a searchpath A:B:C:A:B:E it will print A:B:C:E to\n";
print STDERR " the stdout\n\n";
print STDERR " -s will mercylessly cut components from the path, \n";
print STDERR " use at your own risk\n\n";
print STDERR " the parameters you gave were: \n";
for ( $i = 0; $i <= $#ARGV; $i++ ) {
print STDERR " $ARGV[$i]\n";
}
exit ;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.