bash
#!/bin/bash
function fun()
{
uid=`id -u $name`
gid=`id -g $name`
echo $uid $gid
}
read name
ret=`fun $name`
echo $ret
#!/bin/bash
function fun()
{
uid=`id -u $name`
gid=`id -g $name`
echo $uid $gid
}
read name
ret=`fun $name`
echo $ret