Hi, On Tue, Nov 13, 2018 at 06:32:55PM -0800, L A Walsh wrote: > I have a bunch of files numbered from 1-over 2000 without leading zeros > (think rfc's)... > They have names with a non-numeric prefix & suffix around the number.
Are prefix and suffix constant? RFC files are usually named rfc${NR}.txt. > It would be nice if sort had the option to ignore non-numeric > data and only sort on the numeric data in the 'lines'/'files'. Perhaps --version-sort could work for you? $ for r in rfc{1..100}.txt; do echo "$r"; done | sort | sort -V (The first sort un-sorts the sorted input data, the seconds sorts it again.) > [...] > Or is there an options for this already, and my manpage out of date? AFAIK not exactly. Thanks, Erik -- It's impossible to learn very much by simply sitting in a lecture, or even by simply doing problems that are assigned. -- Richard P. Feynman