Tag-Archive for » multiple «

Today I want to talk about how am I going to find a way out when in 12 months time, the company I am working fulltime with will be running out of business. I will be facing the layoff.
It’s pretty obvious to me that I want to be an internet entrepreneur and earn a living from blogging and any other stuffs online. It’s very hard as not many ventured into business online survive it. It requires more than just hardwork, you gotta to be smart too. In this world, things are moving very fast, it’s kept on changing and we need to adapt fast too. We need to be flexible and automate as much system as possible.
To achieve financial freedom, I need to have multiple sources of income especially when I’m jobless and business online doesn’t guarantee a living.
So the old saying of putting the eggs in one basket is always true as one source exhausted will have another source to cover. This other source whether it is enough to cover is another matter to think about.
It’s really hard especially if you have a family to look after and they depends on your salary to support their education, insurance, bills , etc. Almost every month my salary is exhausted paying all the expenses, so it’s very high risk not to have a stable income.
Anyway, the fate befall and we shall see what in the end of the dark tunnel can we uncover.

Recently, I have a request to extract data from a compressed file in the form of .gz file (which was compressed using gunzip). The system OS is Solaris platform. And they need to retrieve particular string start with U1 until U9 after a comma, below is the command I use :

gzcat 2009032514.SMT.gz | egrep ‘\,U1|\,U2|\,U3|\,U4|\,U5|\,U6|\,U7|\,U8|\,U9|\,U0′ >data7.txt

Gunzip provide a tool to see the content of the file in the form of gzcat and I’m trying to get string that start with ‘,U0′ or ‘,U1′ or ‘,U2′ until ‘,U9′ , after that write the line data to data7.txt file.