#!/bin/bash

function test()
{
        ret=`grep "unlock_time=" /etc/pam.d/* |grep -v "#"|awk -F 'unlock_time=' '{print $2}'|grep -v "#"`
        #echo $ret
		#$ret is not null
		if [[ -n "$ret" ]];then
			echo 0
		else
			echo 1
		fi

}
test





