#!/bin/sh

# This script converts AIX /etc/security/passwd file to /etc/passwd like format

# 2010-12-21, Sertan Kolat, @warex

for user in `grep : $1 |cut -d ':' -f1`; do cat $1 |awk "/^$user:\$/,/password =/ { if (\$1 == \"password\") { print \"$user:\"\$3\":0:0:$user::/usr/bin/ksh\"; } }"; done


