2
I'm using linux to analyze a windows directory structure. The structure is:
/Documents and settings
/username1
/My Documents
...
/username2
/My Documents
...
...
What command can I execute so that the contents (and sub folders) of all the "My Documents" directories are listed like:
/Documents and Settings/username1/My Documents/filename
/Documents and Settings/username1/My Documents/subdir/filename
/Documents and Settings/username2/My Documents/filename
Basically there are a ton of users but almost none have anything in their My Documents folder. I just want to find and show the contents of those user's that do have documents.
EDIT: Each "username" directory contains many sub directories. I only want to list the tree below the My Documents folder but do so for all usernames at once.
What does {} ; mean? – Dane O'Connor – 2009-09-18T16:34:47.613
that command is throwing: "missing argument to -exec" – Dane O'Connor – 2009-09-18T16:38:47.667
Make sure that you have the ; (backslash semicolon) on there. – KeithB – 2009-09-18T16:45:09.370
Ah, once you explained I noticed I didn't have a space between '{}' and ';'. Perfect. I assume the ';' is to prevent the shell from expanding ';'? – Dane O'Connor – 2009-09-18T16:50:10.373
Shoot, this is listing all the contents of Documents and Settings – Dane O'Connor – 2009-09-18T16:54:17.353