So, why didnβt anyone suggest just using options that eliminate those parts that he doesnβt want to process.
In modern Debian, you just get your file:
ls --format=single-column
In addition, you do not need to pay attention to the directory in which you use it if you use the full directory:
ls --format=single-column /root/dir/starting/point/to/target/dir/
This last command I use above, and I get the following output:
bot@dev:~/downloaded/Daily
BradChesney79 Dec 21 '14 at 20:45 2014-12-21 20:45
source share