Others have already answered - but if you want a literal equivilent you could do worse than look at the Perl Power Tools project.
This aims to rewrite lots of standard utilities in pure perl.
SteveIn reply to Re: "mkdir -p" equivalent?
by skx
in thread "mkdir -p" equivalent?
by ccarden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |