SYNOPSIS
__inc_link [ -s ] <symlink> <increment>DESCRIPTION
the sequence will be determined, to what the given symlink points. The integer number at the end of this filesystem entry will be increased by the given increment (may be negative).The symlink will be removed and a new one created pointing to the resulting filesystem entry. If there is no filesystem entry with the resulting name exists, an error message is printed. If the new symlink cannot be created or the old one cannot be removed an error messages are printed. If everything works fine and the -s flag (silent) is not supplied, the name of the filesystem entry to that the new symlink points, is printed. If any error occurs the original symlink remains unchanged.
EXAMPLES
- if ls -l reports:
-
lrwxrwxrwx 1 af user 13 Oct 8 14:00 the_link -> file.number.4
- and the command __inc_link the_link 2 is entered, the result of a following ls -l will be:
- lrwxrwxrwx 1 af user 13 Oct 8 14:00 the_link -> file.number.6
- and some more (file.number.6 must exist)
AUTHOR
This manual page was written by Rene Mayorga <[email protected]> for
the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.