Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame^] | 1 | #/bin/bash |
2 | |||||
3 | cd dats | ||||
4 | export DATE=$(date "+%Y-%m-%d %H:%M:%S.000+0000" -d "+6 months") | ||||
5 | |||||
6 | TEMP=$(mktemp) | ||||
7 | |||||
8 | mv user_role.dat $TEMP | ||||
9 | cat $TEMP | awk -F '|' '{print $1"|"$2"|"ENVIRON["DATE"]"|"$4"|"$5}' > user_role.dat | ||||
10 | |||||
11 | mv cred.dat $TEMP | ||||
12 | cat $TEMP | awk -F '|' '{print $1"|"$2"|"ENVIRON["DATE"]"|"$4"|"$5"|"$6"|"$7"|"$8}' > cred.dat | ||||
13 | |||||
14 | rm $TEMP | ||||
15 | |||||
16 | cd - > /dev/null | ||||
17 |