3 ms·
First off, this is from 2002. Second, the proposed solutions in #3, which use ls, are buggy. They don't work in the face of filenames with a newline in them.
by dalke 12y ago
First off, this is from 2002.
Second, the proposed solutions in #3, which use ls, are buggy. They don't work in the face of filenames with a newline in them.
% python -c 'open("ab\ncd", "w")'
% ls ab* | cat
ab
cd