* Korn Shell Script question
@ 2001-08-24 15:21 Jonathan Williams
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Williams @ 2001-08-24 15:21 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------=_NextPart_000_02F5_01C12C8E.ECB297F0", Size: 2217 bytes --]
This is a multi-part message in MIME format.
------=_NextPart_000_02F5_01C12C8E.ECB297F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi...I'm not sure if this is the right place to be asking--but I'm using =
a Tru64 5.1 box, so I'll just go for it.
I'm writing a Korn shell script, and one part I just can't figure out. =
In a given directory we have a bunch of log files. These files are =
constantly being updated with more data. How would I go about geting a =
list of all the files in this directory that were CREATED on a =
particular day. Basically I'm not sure how to get a listing by creation =
date...not modification date. If this is not the right place to =
ask...could someone point me to a Korn Shell board? TIA
Jonathan Williams
UNIX Systems Administrator
The Shubert Organization, Inc.
------=_NextPart_000_02F5_01C12C8E.ECB297F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3207.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi...I'm not sure if this is the right =
place to be=20
asking--but I'm using a Tru64 5.1 box, so I'll just go for =
it.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm writing a Korn shell script, and =
one part I=20
just can't figure out. In a given directory we have a bunch of log =
files. These files are constantly being updated with more =
data. How=20
would I go about geting a list of all the files in this directory that =
were=20
CREATED on a particular day. Basically I'm not sure how to get a =
listing=20
by creation date...not modification date. If this is not the right =
place=20
to ask...could someone point me to a Korn Shell board? =
TIA</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>Jonathan Williams<BR>UNIX Systems=20
Administrator<BR>The Shubert Organization, =
Inc.</FONT></DIV></BODY></HTML>
------=_NextPart_000_02F5_01C12C8E.ECB297F0--
^ permalink raw reply [flat|nested] 2+ messages in thread
* korn shell script question
@ 2003-10-23 23:00 Brehl, Blake
0 siblings, 0 replies; 2+ messages in thread
From: Brehl, Blake @ 2003-10-23 23:00 UTC (permalink / raw)
Hi,
I want to identify the number of the line of the last occurance of the
string "End of Report" within a file.
#> more somefile
line1
line2
End of Report
line4
End of Report
line6
End of Report
#>
#> #!/bin/ksh
#> grep -in "End of Report" somefile | awk -F: '{print $1}'
results in
3 5 7
Is there a way to capture the last value (7), when you don't know how many
occurance? I have gnugrep loaded if that is a better command.
TRU64UNIX V5.1A sp4
Best Regards,
Blake Brehl
Sys Admin/DBA
Anritsu Company United States
Morgan Hill, CA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-23 23:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-24 15:21 Korn Shell Script question Jonathan Williams
-- strict thread matches above, loose matches on Subject: below --
2003-10-23 23:00 korn shell script question Brehl, Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox