Monthly Archives: September 2011

List Group Membership of a User

List Group Membership of a User Here’s how you can get information of a user using a username. You will get information about the account detail and which group membership they are in. H:>net user John.Whingy /domainThe request will be processed … Continue reading

Advertisements
Posted in Uncategorized | Leave a comment

Shell Scripting: How to Read a File Line by Line in a Shell Script

How to Read a File Line by Line in a Shell Script There are many ways to handle any task on a Unix platform, but sometechniques that are used to process a file waste a lot of CPU time.Most of the wasted time is spent in unnecessary variable assign… Continue reading

Posted in Uncategorized | Leave a comment

Choosing the field separator in awk

awk ‘BEGIN {FS=”:”};{print $1}’ Each record will be split into fields using the string denoted in FS Continue reading

Posted in Uncategorized | Leave a comment