grep '' fileA fileB | sort -n -t: -k2
grep will prepend file name if you grep thru multiple files.
If you grep for '', you'll get every line.
Then sort by what follows the colon.
As an example, suppose 2 files:
fileA:3
fileA fileB
14
1 13
3 12
5 11
7 10
9 8
11 6
12 4
13 2
0
$grep '' fileA fileB | sort -n -t: -k2
fileA:
fileB:0
fileA:1
fileB:2
fileA:3
fileB:4
fileA:5
fileB:6
fileA:7
fileB:8
fileA:9
fileB:10
fileA:11
fileB:11
fileA:12
fileB:12
fileA:13
fileB:13
fileB:14
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/