Ok, I'm in the middle of writing some shellscript... and I've become a bit stuck.
I need to get a directory listing into a file, but here's the catch... I need the path preceding it. Now in DOS (booo) I found that if I do "dir /S /b", i get a nice directory listing with each file having the path preceding it, but I can't figure out how to do this in Linux.
Heres a sample of what I need:
/home/httpd/index.htm
/home/httpd/blob.gif
/home/httpd/myscript.sh
instead of
/home/httpd/:
index.htm
blob.gif
myscript.sh
Now, I've read and re-read the manual for "ls" many times, get I can't find a way to do the same thing under linux... The closest I've come is "ls -AR1"
Would a bit of shellscript be able to achieve this?