The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-02-2008
Perderabo's Avatar
Perderabo Perderabo is offline
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,452
Let's say the basename is just xyz...

if xyz.8 exists then move xyz.8 to xyz.9
if xyz.7 exists then move xyz.7 to xyz.8
.
.
.
if xyz.1 exists then move xyz.1 to xyz.2
Reply With Quote