Help for this page

Select Code to Download


  1. or download this
    my $container = '/path/to/dir/that/holds/all/the/dirs';
    my $tomove = '/path/to/the/dir/you/want/to/move';
    
    ...
    chomp($newdir = `ls -1 $container | tail -n 1`);
    $newdir++;
    system("mv $tomove $container/$newdir");