Hello people i`m back i`m from argentina
, i`m trying to do a script that list the sulog of the last month (actual month 07 i need 06), the complicated part is that i need that but in here
-set +A MESES 0 Dec Jan Feb Mar Apr May Jun Jul Ago Sep Oct Nov
Mes=${MESES[`date +%m`]}
last -a|nawk -v mes="$Mes" '
$4 ~ mes {print $0;flag=1}
/system boot/ && $5 ~ mes {print $0;flag=1}
$4!~ mes && (/system boot/ && $5 !~ mes) {if(flag==1) exit;}
'
this program print the user that log on the computer (last) of the last month, my boss said something about convert the motnh of a number but i am very lost any ideas? thank for your help if someone come to argentina i invite the dinner.