Mohan Cheema's Online Diary

Site Just to Keep Track of My Day to Day Work.

May 21, 2010
by Mohan Cheema
0 comments

AWK One Liners

Simple AWK programs enclosed in single quotes can be typed and executed right at the Unix prompt. For example, the program

awk ‘BEGIN { FS = “:” } { print $1 | “sort” }’ /etc/passwd

This program prints a sorted list of the login names of all users.

Share
Share

April 28, 2010
by Mohan Cheema
0 comments

Often Useful often forgotten unix commands

Here I have tried to list the commands that are useful for us (sys admins) but we still tend to forget. Listed here are a bunch of unix commands.

Share
Share