Help for this page
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");