![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
awk with more than one FS
I have a passwd file
user:me31oe0ZEh:100:100: user name ++user@domain.com:/export/user:/bin/bash to get the 6field and awk again with email address. current command awk -F":" ' { print $6 }' passwd | awk -F"++" ' { print $2 } ' I would like to know if it is possible to run one single awk command that can specify 2 FS ? thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|