The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
yesterday date month/date
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
yesterday date month/date
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
06-24-2008
skully
Registered User
Join Date: Apr 2008
Posts: 46
yesterday date month/date
Hi expert,
I want to retrieve yesterday su log.
How to calculate and assign variable value ( 06/23 ) in myVariable ?
#!/bin/sh
myVariable=yesterday date in month/date
cat /var/adm/sulog | grep $myVariable > file.txt
many thanks!
skully
View Public Profile
Find all posts by skully
Find skully's past nominations received
Find skully's present nominations given