Bash > Write bash program that given a group name, will find all users that belong to that group.
Author: Aleksandr Chirkov
March 12, 2014, 3:08 a.m.

1. With cut:

​root@ansible:~# group_id=`cut -d':' -f1,3 /etc/group | grep dpi | cut -d':' -f2`
root@ansible:~# cut -d':' -f1,4 /etc/passwd | grep $group_id
dpi:1000

2. With awk:

root@ansible:~# group_id=`cat /etc/group | awk -F  ":" '{print $1,$3}' | grep dpi | awk '{print $2}'`
root@ansible:~# cat /etc/passwd | grep $group_id | awk -F ":" '{print $1,$4}'
dpi 1000

 

linux
job-interview
bash
awk
cut
Amoxicillin Dosage For 7 Month Old Cialis For Sale In Uk Propecia Carne [url=http://costofcial.com]cialis[/url] Normal Dosage Amoxicillin Wellbutrin And Breast Growth Priligy Paypal Lower Right Side Abdominal Pain Amoxicillin online pharmacy Canadian Viagra Without Prescription Azithromycin Zithromax 250mg Achat De Cialis Forum http://costofcial.com - cialis Cephalexin Nursing Mother Viagra Similares Simi
Chaque Cachet Jaune Contient Soit 10mg How To Use Viagra [url=http://costofcial.com]cialis[/url] Cialis Lo Mejor Fluconazole No Prescription Cialis Nedeland Dutasteride Bph viagra cialis Infection Not Responding To Keflex Levitra Il Migliore Cialis Tension Arterial Alcohol Consumption While Taking Amoxicillin Pastillas Cialis Para Que Sirven http://costofcial.com - cialis online Viagra In Italia
Propecia No Conecta Tabletas Propecia Generico [url=http://costofcial.com]online pharmacy[/url] Cheapeast Bentyl Direct Worldwide With Free Shipping Viagra Stl Buy Online Levitra Comprar Online cialis Tooth Abcess And Amoxicillin By Cheap Viagra Amoxil Tablette Viagra With No Prescription http://costofcial.com - cialis Doxycycline For Sale Over The Counter buy accutane paypal Zithromax Children
buying cialis in south africa [url=http://cialisle.com]cialis online[/url] cialis how to take effectively generic cialis what is a normal cialis dose
thai herbal viagra [url=http://viagrabs.com/]http://viagrabs.com/[/url] what happens if my girlfriend takes viagra viagra online is viagra is good for health
cheap ed meds online ed medicines generic for erectile dysfunction ed medications best ed medication what are the best generic ed drugs online erectile dysfunction medications ed medications compared cheap ed medication ed medications online ed drugs online best erectile dysfunction medication in canada ed drugs meds for ed erectile dysfunction medications sold in canada erectile dysfunction drugs generic ed drugs cheap erectile dysfunction drugs-canada canadian erectile dysfunction drugs ED medication order erectile dysfunction medication generic drugs for erectile dysfunction erectile meds ed drug cost comparison buy erectile dysfunction drugs generic ed medication erectile dysfunction medication prices ed meds on line cheap ed drugs best erectile dysfunction drugs for sale online erectile dysfunction drugs online meds for erectile dysfunction generic ed meds erectile dysfunction drugs canada ed drug best ed drug best deal on ED meds cheap ed meds medication from canada ed erectile dysfunction generic name for ED drugs buy erectile dysfunction drugs online cheap erectile dysfunction medication generic erectile dysfunction medications erectile dysfunction drugs comparison impotence drugs online common drugs for ed generic impotence drugs ed meds cost effective ed drugs canadian erectile dysfunction drugs rosa impex pvt ltd viagra levitra vs viagra vs cialis amoxicillin buy canada buy lexapro online australia discount brand viagra by pfizer sildenafil 100 mg onlinepharmacy viagra samples overnight no prescription cialis
cheap ed meds online ed medicines generic for erectile dysfunction ed medications best ed medication what are the best generic ed drugs online erectile dysfunction medications ed medications compared cheap ed medication ed medications online ed drugs online best erectile dysfunction medication in canada ed drugs meds for ed erectile dysfunction medications sold in canada erectile dysfunction drugs generic ed drugs cheap erectile dysfunction drugs-canada canadian erectile dysfunction drugs ED medication order erectile dysfunction medication generic drugs for erectile dysfunction erectile meds ed drug cost comparison buy erectile dysfunction drugs generic ed medication erectile dysfunction medication prices ed meds on line cheap ed drugs best erectile dysfunction drugs for sale online erectile dysfunction drugs online meds for erectile dysfunction generic ed meds erectile dysfunction drugs canada ed drug best ed drug best deal on ED meds cheap ed meds medication from canada ed erectile dysfunction generic name for ED drugs buy erectile dysfunction drugs online cheap erectile dysfunction medication generic erectile dysfunction medications erectile dysfunction drugs comparison impotence drugs online common drugs for ed generic impotence drugs ed meds cost effective ed drugs canadian erectile dysfunction drugs rosa impex pvt india ltd tadalafil generic vs cialis order canada amoxicillin 500mg capsule lexapro online without a prescription cheap viagra pfizer best price 100mg generic viagra canadian pharmacy online no script women's viagra samples tadalafil without prescription
kamagra oral jelly online kaufen paypal [url=http://kamagrabst.com/]kamagra oral jelly sildenafil[/url] kamagra forum kamagra 100 mg buy kamagra 100mg oral jelly uk http://kamagrabst.com/ kamagra store gutschein
cialis bez recepty krakow [url=http://cialisle.com]buy cialis online[/url] can cialis be purchased online buy cialis online viagra compared to cialis compared to levitra
kamagra 100mg oral jelly suppliers kamagra 100mg oral jelly amazon kamagra oral jelly amazon nederland texas [url=http://kamagrabst.com/]kamagra oral jelly kaufen thailand[/url] kamagra jelly use http://kamagrabst.com/ kamagra jelly paypal
super active cialis reviews buy cialis online cialis vs viagra vs levitra sale [url=http://justinpro.com/#]buy generic cialis online[/url] best deals on generic cialis buy generic cialis online levitra vs viagra vs cialis cost [url=http://airvietnamairline.com/#]generic cialis online[/url] levitra vs cialis vs viagra
viagra how long in body [url=http://viagrabs.com/]buy generic viagra[/url] how fast does viagra start working buy generic viagra mejor efecto viagra
generic cialis professional 20 mg buy generic cialis cialis dosage and timing [url=http://coastalseaplanes.com/#]buy generic cialis[/url] cialis generico preço ultrafarma buy cialis online cialis 2.5 mg vs 5 mg reviews [url=http://northcoastgetaway.com/#]generic cialis[/url] brand cialis prices
viagra super active review buy viagra generic viagra (sildenafil) 100mg [url=http://amsboatyard.com/#]generic viagra[/url] viagra generico en farmacias espaГ±a buy viagra online comprar viagra cialis levitra generico the health report online com [url=http://viagrapillq.com/#]generic viagra[/url] generic brand for viagra
levitra cialis viagra comparison buy generic cialis online price cialis 5mg australia [url=http://justinpro.com/#]generic cialis online[/url] cialis 5mg price in malaysia cialis generic cialis soft 20mg [url=http://airvietnamairline.com/#]buy generic cialis online[/url] alcohol viagra cialis levitra stendra
purchase generic cialis online buy cialis online best price for cialis 5mg [url=http://justinpro.com/#]cialis[/url] cialis generico 5 mg preço buy generic cialis online cialis 5mg tablets [url=http://airvietnamairline.com/#]buy cialis online[/url] cialis vs viagra reddit

Leave a comment:

Name
Python
Web development
Review Linux
Administration
Provisioning CVS
Windows AWS
Continuous Integration
NoSql Logging Web Servers FileSystems Scala
accurev ansible apach2 apache api application approaches architecture archivation argparse arguments artifactory automation awk aws backup bash batch-scripting beaver block build built-in caching call captcha cartridge case certificates cgi chain client cloud cloudformation cluster cmd coding collections command-line commands compression conditionals conversion convert cookbook copy counter cron crud css cut cygwin daemon datatype date dd debpackage decorator delattr deploy deque dict distributed-file-systems django DNS domain driver dropbox dump elasticcache elasticsearch encryption exit ext4 extra-tags failover file filename filters for form format freetds functions gerrit getattribute gid git globals glusterfs hardware hook iam indexing inheritance init install job-interview jquery ldap linux list locals logging logs logstash lookup magicmethods mail main-menu metadata metalogger mongodb moosefs mount mssql multiplatform multithreading mysql netcat nginx nosql open-ssh openldap openshift os packaging parse partition path pattern patterns permissions pid pil pip pipe playbook pool post post-commit processes production provisioning proxy putty python python-mysql recursively redirection redis register replication repr restore return review rotation scala script search selenium server setattr settings setup shipper signals singleton slots snapshot socket splunk ssh ssh-key ssl storage str string style subprocess sugar super switch syntactic syntaxhighlighter systeminfo tail tar templatetags time tls tune2fs tuple ubuntu unicode unique unix unixodbc usage usecases uuid uwsgi variable vars version vi virtualenv volume web web-server windows with_items __getattr__