Unix/ls

From Rosetta Code
Revision as of 11:40, 5 June 2014 by rosettacode>Wei2912 (Clarification.)
Unix/ls is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Write a program that will list all files and directories in the current folder, truncating everything except for the dirname/filename, similar to the Unix utility `ls`.