If you have ever used tail
to follow multiple files, you will notice that it can be a real pain to read what data is coming from what file. Here is some quick perl I use to make it a bit easier:
1
|
|
You can of course extend this to a full out perl script that processes data as follows:
1 2 3 4 5 6 7 8 9 |
|
Now you can just pipe whatever data you want into the above script:
1
|
|