Quantcast
Channel: dir command: force output to one filename per line, full path included, but nothing else - Ask Ubuntu
Viewing all articles
Browse latest Browse all 5

Answer by user9101329 for dir command: force output to one filename per line, full path included, but nothing else

$
0
0

You can use use readlink command for that. First use find command to get files in the current directory. Then on the list to readlink. For example:

$ find . -maxdepth 1 -type f | xargs readlink -f

Which will list in a single column all the files.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>