Is there an easy way I can print the full path of file.txt ?
file.txt
file.txt = /nfs/an/disks/jj/home/dir/file.txt
The
Works on Mac, Linux, *nix:
This will give you a quoted csv of all files in the current dir:
ls | xargs -I {} echo "$(pwd -P)/{}" | xargs | sed 's/ /","/g'
The output of this can be easily copied into a python list or any similar data structure.