[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Bash script help
- Subject: [ale] Bash script help
- From: ale_nospam at fayettedigital.com (Jim Lynch)
- Date: Wed, 12 Mar 2008 06:40:51 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>
>
Homework?