Category: Unix

Information related to Unix

Image of Clock 1

Number of seconds since midnight till now in unix

Had a requirement to find out the number of seconds since midnight till now in unix. Basically the requirment was more to this, it was to find the latest file created after midnight having specific...

Unix 0

Remove duplicate lines from file using awk

We mostly have the requirement to remove duplicate lines from file, support guys know the pain well Lets look at the quickest solution to achieve this. Requirement:   Solution : awk ‘!x[$0]++’ file1.txt Explanation...