3 ms·
Seven lines is even a bit much. You could do it all on the commandline if you don't mind a bit of ugliness, and all Perl programmers should be used to some ugl
by jandrese 7y ago
Seven lines is even a bit much. You could do it all on the commandline if you don't mind a bit of ugliness, and all Perl programmers should be used to some ugliness.
perl -ne 'if (/^(\d+)/) { print $1, "\n" }'
Put the list of input files at the end of the line.
- NoodleIncident 7y agogrep -oP "^\d+"
- yesbabyyes 7y agogrep -Eo '^\d+' file