If you want to search a file and show all the lines that don’t match a particular pattern, you an use the following option in grep
grep -v "PATTERN" fileName
If you want to search a file and show all the lines that don’t match a particular pattern, you an use the following option in grep
grep -v "PATTERN" fileName
Here’s a small script to compare the files in two different directories on a Linux machine. The script uses MD5 checksum to compare the files.
#\!/bin/bash
prefix1=“/usr/directory1″ # First directory without trailing /
prefix2=“/usr/directory2″ # Second directory without trailing /
find \-L “$prefix1″ \-type f \| while read filename; do
name=“${filename#$prefix1*}â€
sum1=“$(md5sum \-b â€$prefix1$name“)â€
sum2=“$(md5sum \-b â€$prefix2$name“)â€
if \[ “${sum1% \*}†= “${sum2% \*}†\]; then
echo “ok: $prefix1$nameâ€
else
echo “not ok: $prefix1$nameâ€
fi
done
I wrote ~2 years ago, about accessing the Internet, while I was flying at 35,000 feet in the air. Since then, the company that provided this service, Connexion, has declared bankruptcy and everyone pretty much wrote off the market for in-air Internet access. Looks like enough people want it 🙂 and several companies are reentering this market. This article at news.com claims that most of the US air-carriers will have some kind of broadband service available in the next 2 years. Say goodbye to the last “Internet free” place on earth 🙂
While, I am writing about couples smooching over each other!! :), my buddy Ray is writing something meaningful. As he states, Microsoft is planning on ending sales of Windows XP on June 30 2008. While Vista, has a lot of cool features, none of them are compelling for businesses to make the expensive migration. Not only does the new operating system require extensive planning for the migration and training for the tech support teams, but businesses also have to consider the expense of training end users because the interface has changed so much.
And not to mention the 100 different (I am exaggerating!! 🙂 ) flavors of Vista that Microsoft has come up with to make the decision even tougher.
Sign the petition here . [UPDATE : Link has been corrected.. Thx Ray for pointing this out.]
SysInternals, a company founded by Mark Russinovich and Bryce Cogswell, and later acquired by Microsoft, produces some of the well known “must have” tools for a system administrator. Top on my list would be
If a sys admin (esp Windows admin) says that they don’t know these tools.. don’t hire them :).
I recently typed “Hyderabad Time” in Google and it actually showed the current time in Hyderabad :). Apparently, this feature has been around for quite some time. And all this time, I was drudging along to www.worldtimeserver.com and clicking on a particular country/city to find the time there.. Google rules :).
The almighty Google has come out with a new toy for me to play with :). I don’t claim, that I am a programmer by any means, but like to dabble in scripting now and then. So, I was really excited to see this new simple API from Google for creating charts. I can already imagine, how this can be used in generating some cool reports. Here’s my “Hello World” graph using the API.
The code I used to generate this graph is
“http://chart.apis.google.com/chart?cht=p3&chd=s:hW&chs=250×100&chl=Vinay|Rocks&chtt=My+Hello+World”
Looks like some smart and entrepenuring programmer is already making some money out of this API :). Check out this link for a very cool and smart implementation of the API
Anyone working in IT Operations, knows that numbers are really important :). Esp, numbers showing availability, downtime, response time etc. I have used, several tools and services during my career to capture these numbers, but have never come across a service that is cost effective and reliable at the same time. I discovered site24x7.com, while was evaluating some products from their parent company AdventNet.
Site24x7.com offers external monitoring for your key network components, at the fraction of the price charged by others in area. I wouldn’t put them on the same scale as Gomez or Keynote, but for they are very reasonable for the features they offer. Also, while they are lacking in the customer service area per se, they are very quick to add features based on feedback. I provided them (and I am sure several others) some feedback on adding a feature to have setup scheduled maintenance (so that it doesn’t skew with the availability numbers) for the services monitored and they added the feature in less than a month.
If you are looking, for a reasonably priced monitoring service, look no further..
The server that hosts this website got hacked last week and the site was down for most of the week. This is the third time, a server at my current hosting provider was hacked. Think it is time, I moved providers.. Getting tired of restoring databases :)..

I am planning on sharing some of the “Ahh.. we should have thought of that” moments on this site as I run into them. First is to remind of me of my past mistakes, so that I can avoid them in future, and two is help other folks out. Here’s my first one..
We decided to change the password parameters in our companies group policy recently. The password expiration was changed to 60 days from 120 days and password complexity was enabled. We thought this was a pretty straight forward change and wouldn’t get the helpdesk swamped with calls, since the new policy will take affect as the current passwords expire..
Wrong!!! AD checks the last time your password was changed and compares it to the password expiration time frame in group policy. And you could just imagine, the look our helpdesk folks gave the engineers when they got swaped with people calling them that they are being forced to change passwords and all the ones they used before don’t work.
Morale : Decrease the password timeout in intervals. i..e in our case, we should have decreased the expiration date 10 days at a time. That way, you minimize the impact the change.