Hi, Need help. How can I get a listing of files in bare format with full path. I mean in the following format.
/root/dir1/sub-dir1/file1 /root/dir1/sub-dir1/file2 /root/dir1/sub-dir2/file1 /root/dir1/sub-dir2/file2 /root/dir2/sub-dir1/file1 /root/dir2/sub-dir2/file1 /root/dir2/sub-dir2/file2
and so on...
Please advice. Thanks in advance.
Regards, Tipsy.
I guess this should work. Let me know if you have a better way to do it.
find . -type f
# All files in the current directory and subdirectories find . -type f | sed -e "s@^\.@$PWD@" # All files in the current directory (no subdirectories) find ./* -prune -type f | sed -e "s@^\.@$PWD@" # All files on your system find / -type f