Displaying 1 result from an estimated 1 matches for "learninng".
Did you mean:
learning
2008 Nov 27
2
OT: bash script for passwd and shadow manipulation
...ld.
So far, cut returns the name up to the space, so in this case it will
return Kimaura and not Kimaura Thomas.
Can you please point me to internet examples of tools (sed, awk, grep
or cut) that will help me accomplish this, or maybe provide the code?
And here is the code (not the best...im still learninng..)
#!/bin/bash
# Passwd to Zimbra import
# This script modifies the displayName field in the Zimbra mailserver
# This script will parse /etc/passwd and extracts field 1 and field 5
# field 1 is the username.
# field 5 is the name in long format of the username
#
# domain="oj.gob.pa"
# fil...