Re: [luau] Shell Script Help

2002-07-14 Thread Miutaro
Hello Mike,

I wrote a script on my Solaris 2.6 box at work that looks something like
this:

#!/usr/bin/sh

TODAY=`date +%y%m%d`
echo $TODAY
echo ---
YESTERDAY=`echo $TODAY | awk -F/ '{print 1 day ago  $1 / $2 / $3 -
1}'`
 echo $YESTERDAY
###END

You could always use the '--' operand to decrement vice $3 - 1

-Doug Muhlbauer
- Original Message -
From: Mike Ballon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 12, 2002 9:54 AM
Subject: [luau] Shell Script Help


 To those that don't know me Aloha, to those that do how come nobody told
me
 about the new list :P

 The scipt below works fine a Linux box but I need it work on my Solairs
2.7
 box.  Basically I just need a scipt that writes yesterday's date in the
 format of yymmdd, thanks.

 #!/bin/sh
 # used to test date

 TODAY=`date +%y%m%d`
 echo $TODAY
 echo ---
 #Get day ago
 YESTERDAY=$(date --date 1 day ago +%y%m%d)
 echo $YESTERDAY
 ___
 LUAU mailing list
 [EMAIL PROTECTED]
 http://videl.ics.hawaii.edu/mailman/listinfo/luau



Re: [luau] Shell Script Help

2002-07-14 Thread whenever
Could this script be a problem on the 1st of each month?

On Sunday 14 July 2002 09:42 am, you wrote:
 Hello Mike,

 I wrote a script on my Solaris 2.6 box at work that looks something like
 this:

 #!/usr/bin/sh

 TODAY=`date +%y%m%d`
 echo $TODAY
 echo ---
 YESTERDAY=`echo $TODAY | awk -F/ '{print 1 day ago  $1 / $2 / $3 -
 1}'`
  echo $YESTERDAY
 ###END

 You could always use the '--' operand to decrement vice $3 - 1

 -Doug Muhlbauer
 - Original Message -
 From: Mike Ballon [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, July 12, 2002 9:54 AM
 Subject: [luau] Shell Script Help

  To those that don't know me Aloha, to those that do how come nobody told

 me

  about the new list :P
 
  The scipt below works fine a Linux box but I need it work on my Solairs

 2.7

  box.  Basically I just need a scipt that writes yesterday's date in the
  format of yymmdd, thanks.
 
  #!/bin/sh
  # used to test date
 
  TODAY=`date +%y%m%d`
  echo $TODAY
  echo ---
  #Get day ago
  YESTERDAY=$(date --date 1 day ago +%y%m%d)
  echo $YESTERDAY
  ___
  LUAU mailing list
  [EMAIL PROTECTED]
  http://videl.ics.hawaii.edu/mailman/listinfo/luau

 ___
 LUAU mailing list
 [EMAIL PROTECTED]
 http://videl.ics.hawaii.edu/mailman/listinfo/luau


Re: [luau] Shell Script Help

2002-07-12 Thread Robert Green
It was posted on the old list ... we all thought you were here and
just lurking  =-P

- Rob
--- Mike Ballon [EMAIL PROTECTED] wrote:
 To those that don't know me Aloha, to those that do how come nobody
 told me
 about the new list :P
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


Re: [luau] Shell Script Help

2002-07-12 Thread al plant
Mike Ballon wrote:
 
 To those that don't know me Aloha, to those that do how come nobody told me
 about the new list :P
 
 The scipt below works fine a Linux box but I need it work on my Solairs 2.7
 box.  Basically I just need a scipt that writes yesterday's date in the
 format of yymmdd, thanks.
 
 #!/bin/sh
 # used to test date
 
 TODAY=`date +%y%m%d`
 echo $TODAY
 echo ---
 #Get day ago
 YESTERDAY=$(date --date 1 day ago +%y%m%d)
 echo $YESTERDAY
 ___
 LUAU mailing list
 [EMAIL PROTECTED]
 http://videl.ics.hawaii.edu/mailman/listinfo/luau
###


Hi Mike,


Good to have you aboard again.

Aloha! Al Plant - Webmaster http://hawaiidakine.com
Providing FAST DSL Service for $28.00 /mo. Member Small Business Hawaii.
Running FreeBSD 4.5 UNIX  Caldera Linux 2.4  RedHat 7.2
Support OPEN SOURCE in Business Computing. Phone 808-622-0043