Find a pattern and then do search and replace of a word.

I was having a file with format as below.
1. Different fields with a field seperator.
2. Multiple lines.
3. There were multiple lines with same strings to be replaced but there are few lines to match a pattern string to execute find and replace.

Used the following vi editor command.
:%g/^.*pattern*.$/s/find/replace/g
where,
%g for using regular expression command in vi.
^.*pattern*.$ for searching and selecting lines containing the (semi-)word pattern.
s/find/replace/g for string find words with value “find” and replace them with string “replace”.

Review on Google Chromebook Pixel

Google’s Chromebook Pixel is a gorgeous, solid, aluminum-bodied laptop supporting high-resolution display.

Pros: Luxurious and sturdy design; Superior high-resolution display; Fantastic keyboard and touchpad; Very loud and clear speakers; 4G LTE built in

Google’s Chromebook Pixel is an idea. It describes Google’s vision of a high-end laptop for citizens of a future world, freed from the encumbrances of old-style computer operating systems, existing entirely on the Web.  Read more…

Google’s Web-based Chromebook laptops seem to be heading in two different directions. On one end, there’s the Samsung Chromebook Series 3. At the time of his writing, it’s the best-selling laptop on Amazon.com. Perhaps not surprising, given its $249 price tag — it’s basically filling the low-end gap left by the collapse of the netbook and the rise of the 7-inch tablet. Read more...

Worldwide Server Market Rebounds Sharply in Fourth Quarter as Demand for x86 Servers and High-end Systems Leads the Way, According to IDC

International Data Corporation (IDC) is the premier global provider of market intelligence, advisory services, and events for the information technology, telecommunications, and consumer technology markets. IDC helps IT professionals, business executives, and the investment community to make fact-based decisions on technology purchases and business strategy.

According to IDC worldwide server market rebounds sharply in fourth quarter as demand for x86 servers and high-end systems leads the way. Read more…

Memory de-duplication in the Linux kernel

Linux® as a hypervisor includes a number of innovations, and one of the more interesting changes in the 2.6.32 kernel is Kernel Shared Memory (KSM). KSM allows the hypervisor to increase the number of concurrent virtual machines by consolidating identical memory pages. Explore the ideas behind KSM (such as storage de-duplication), its implementation, and how you manage it.

View article…