[ale] Bash script help
Dylan Northrup
docx at io.com
Wed Mar 12 08:13:35 EDT 2008
A long time ago, (12.03.08), in a galaxy far, far away, Doctor Who wrote:
:=I'm trying to return the value of when the last time the root password
:=was changed. The script would do something like:
:=
:=1) more /etc/shadow | grep root | awk -F: '{print $3}'
:=2) Take above value and add 1
:=3) Multiple the result by 86400
:=4) Substitute the value above after the @ below
:=5) date -d @XXXX +"%B %d %G"
:=6) Give me the output value of this
:=
:=I would like to keep this done using bash. Any help appreciated.
Happy to help. My consulting rates for bash scripts are $60/hour (1 hour
minimum). Contact me off-list.
:-)
--
Dylan Northrup - docx at io.com - http://www.io.com/~docx/
"Harder to work, harder to strive, hard to be glad to be alive, but it's
really worth it if you give it a try." -- Cowboy Mouth, 'Easy'
More information about the Ale
mailing list