0

I have a very simple question about the linux command line. Say I'm in a folder in the terminal with 6 CSV files. I'd like to simply print out the contents of the folder with all of the paths to the six files listed. I'd like to use these paths to these files in my code to access them. What command would do this?

Would it be a modified LS command? I'd like to not use the 'find' command.

John
  • 21
  • 2
  • 1
    welcome to [so], a programmer's forum. this is a great place to ask questions when you got stuck. however, it is not an automated programming service, where you simply state your problem in human langugae and get a running program in return for free. what have you tried so far, were are you failing? – umläute Jun 21 '21 at 17:45
  • [Are you looking for something like this?](https://stackoverflow.com/questions/246215/how-can-i-generate-a-list-of-files-with-their-absolute-path-in-linux) – learner Jun 21 '21 at 17:49
  • Please [edit] your question and show an example how the result should look like. Please explain *why* you don't want to use `find` which might be the ideal tool for this. It is not a good idea to print the file paths first and parse this output to access the files. You could do something like `for f in "$(pwd)"/*.csv; do do_something_with "$f"; done` – Bodo Jun 21 '21 at 17:50

0 Answers0