Split the Session History File
If somebody uses the user history where Infor LN writes every session in the file TIME.HIS and you are searching for e.g. if a particular session is still used by any user than this task can be anoying if the file TIME.HIS has really grown big!
I found a way to tear this file down with a Bash shell script:
First the normally big file TIME.HIS is splitted into
many little files named th-aaa, th-aab, th-aac....
This is just needed if the file TIME.HIS is really big and the following awk will not work on this big file.
Then these files are searched for sessions and users:
For every found session it makes a file and writes the
users that have used this
For every found user it makes a file and writes the
sessions that the user opened
Enjoy and be free to use this file...
Don't forget to create the used directory structure beforehand. ;)