You're replying to a comment by karn Kumar.

karn Kumar Permalink
March 27, 2015, 23:36

Hi ,

I want just Names to be printed from the file using awk , I tried but .. that's not helping to sort it .. pls suggest

#> cat >PP
FFE\Jonny:VAS:1302:99999:aaa:/home/Jonny:/bin/bash
FFE\Mariya:VAS:1304:99999:aaa:/home/Mariya:/bin/bash
FFE\Gammy:VAS:1305:99999:aaa:/home/Gammy:/bin/bash
FFE\Danny:VAS:1310:101:aaa:/home/Danny:/bin/bash
FFE\Tommy:VAS:1314:101:aaa:/home/Tommy:/bin/bash

#> cat PP | nawk -F'[\:]' '{print $1}'
FFE\Jonny
FFE\Mariya
FFE\Gammy
FFE\Danny
FFE\Tommy

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cloud_104": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.