Today i was writing a program to monitor a database. Since my scripting skills are still underdeveloped so i took the entire day to get the number of connections(using bash).
End of the day i realised that there existed a sql statement that could have given me the same value.
Moral: Scripting really sucks.....just kidding
I guess i overlooked that thing in order to polish my scripting skills( atleast unconsiously).