Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- find /etc/vpnusers/ -type f -name index.txt | xargs --replace={} awk -v EXPIRY="$(/bin/date +'%y%m%d%k%M%S' -d "+60 days")" '/^V/ && substr($2, 1, length($2)-1) <= EXPIRY ' {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement