Category: Uncategorized

Interesting data center technical tips / tasks / articles which we come across

How to replace text inplace without opening it, using sed

I have always loved range of text searching and editing tools in Linux. Be it grep to search for various patterns in a file. Or awk to print parts of a file in required format. Or the general purpose vi editor. Or the stream editor sed. Am writing this post to highlight just one feature…
Read more

November 8, 2017 0

PowerShell for Failover Clustering: CSV Free Disk Space

A one liner that gives the info we need regarding usage of the cluster shared volumes in Windows 2012 Get-ClusterSharedVolume | select -Expand SharedVolumeInfo | select -Expand Partition | ft -auto Name,@{ Label = “Size(GB)” ; Expression = { “{0:N2}” -f ($_.Size/1024/1024/1024) } },@{ Label =”FreeSpace(GB)” ; Expression = { “{0:N2}” -f ($_.FreeSpace/1024/1024/1024) } },@{…
Read more

January 12, 2016 0