Untitled

mail@pastecode.io avatarunknown
plain_text
a month ago
332 B
3
Indexable
Never
{
string $pasted[] = `ls "pasted__*"`;
string $object;
for ( $object in $pasted )
{
string $elements[];

tokenize( $object, "|", $elements );
string $stripped = $elements[ `size $elements` - 1 ];


$stripped = `substitute "pasted__" $stripped ""`;

catchQuiet(`evalEcho("rename " + $object + " " + $stripped)`);
}
}