I'm looking for a way to inventory files on a webserver into a CSV file, and am particularly interested in certain types of files, like .php, .cgi, .pl, .py, .sh, etc. but also want the ability to find all files, including those with no extension, or specified extensions, as above, including files that have spaces or unusual characters or line returns in their names.
I saw the post here:
File Inventory Scan
which had a script that mostly worked and provided good info about the files it found, but couldn't handle files with spaces in their names (last column printed "cannot open: No such file or directory").
Ideally this script would also have columns for file user/group ownership, permissions, access, create and modification times, human readable file size, etc.
I'm on a Solaris 11 machine. I may have the ability to install packages if required.