Ask Dave Taylor: Tech and Business


Nifty little Linux shell script to scrape /etc/passwd data

There's a certain level of fascination with account data on Unix and Linux and I receive a surprising number of queries about how to accomplish different tasks while analyzing that data on one of these systems. It turns out to be really easy, however, if you're familiar with the awk command in Linux / Unix, and that's what I demonstrate when I answer a reader query about how to extract user account names and turn them all into email addresses.

    Linux shell script to extract /etc/passwd info

I have quite a bit more about shell script programming in my popular book Wicked Cool Shell Scripts, if this whets your appetite!