Update: instead of "username_1 name_1" format you may want "username_1 name"# cli: perl -pne 's/(.+?):.+/user_$. $1_$./' /etc/passwd # or from file: #!/usr/bin/perl -np s/(.+?):.+/user_$. $1_$./
In reply to Re: printing passwd file
by sh1tn
in thread printing passwd file
by madmonster99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |