On Thursday 20 December 2007 13:05, Phil Burness wrote: > How can I identify file names that end with a space?
% find directoryName -name '* ' This will recurse arbitrarily deeply into your directory structure starting at directoryName. If you want to limit that, you can use the "-maxdepth" option. E.g.: % find directoryName -maxdepth 2 -name '* ' (Zero is pretty much meaningless—find will look only at the explicitly named files or directories whose names precede the selection option arguments and even if they're directory names, it won't look inside those directories.) If you're only interested in a single diretory (no recursive traversal into nested directories) and if there aren't so many such files that the argument list size limit is exceeded, this will do: % ls *\ (There's a space after the backslash.) > Thanks > Phil Randall Schulz -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
