AIX – Unix – Script to Clean/Shrink WTMP file size

Today I came across an AIX wtmp file that was 1.9 GB in size. Needed to shrink the file down to keep at least the last 300 lines. Once I was completed, the file was less than 1 MB. I wrote the below script to clean the wtmp file, you are able to choose where […]