Sponsored Content
Top Forums Shell Programming and Scripting Calculate Files Created Today Post 302357395 by xgringo on Tuesday 29th of September 2009 04:18:06 PM
Old 09-29-2009
Calculate Files Created Today

I need to figure out how to get all the files from a certian dir ./123/*sat files
and ./230/*sat files and several other directories which have these *sat files in them. I need to calculate how many were created today and how many yesterday from 2:00 pm on the 28th to 2pm on the 29th.

It's a solaris box 5.8 sun4us sparc FJSV,GPUZC-M

Help
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sort files by date, not showing files from today

Hi all, i'm new here in this forum. I really like the helpful answers in this forum. Here a short question. For a script i have to sort files by date and exclude the files of the actual date. Sorting the files by date and preparing the output for awk is done by this line: ls -l... (3 Replies)
Discussion started by: carlosdivega
3 Replies

2. UNIX for Dummies Questions & Answers

To list all the files created today with directory path

Hi, Can any one tell the command to list all the files that are created as of today from all the directories? The Command "ls -ltR" is listing all the files. But I want the list of files that has been created as of today along with the directory path:) Thank you in advance.:) Regards,... (4 Replies)
Discussion started by: meetusha.b
4 Replies

3. Shell Programming and Scripting

Files with 0 file size and created today

hi, I am building a script to identify those files created/modified today and with file size 0. I am able to find the files with 0 file size and created/modified in last 24 hrs as shown below but not today (current date), I tried using (touch -t time filenm) but in my version of unix at work it... (7 Replies)
Discussion started by: rushs682
7 Replies

4. Shell Programming and Scripting

Calculate 30/31 days from today date script

Hi Guys, I was working some time ago n was in need to calculate date 30/31 days from today including Feb (Leap yr stuff). Today date is variable depending on day of execution of script. I tried searching but was not able to get exactly what I needed....So at that I time I implemented by my own... (3 Replies)
Discussion started by: coolgoose85
3 Replies

5. Shell Programming and Scripting

ftp - How to download files which created today?

Hello experts, I have written following script to download files which created today. Unfortunately, it's not working. test.ksh: #Defining variables USR='xxx' PASSWD='yyyy' HT='test.test.com' FILE='S*.pdf' XFILE=$(echo find . -type f -mtime 0) ZFILE=$(echo ls -tR|grep 'Jun 8')... (14 Replies)
Discussion started by: dipeshvshah
14 Replies

6. Shell Programming and Scripting

check file exists and created today issue

Morning My other issue I have seems very simple but im just not seeing it. I have a script that checks on a remote share to see if the backups for some systems have run. Its as simple as: find /mnt/ukwcs-net-config/WLAN-Controllers/ -mtime -1 -ls | egrep '(cfg)' > wlanlog.txt cut -c 1-92... (4 Replies)
Discussion started by: ltodd2
4 Replies

7. Shell Programming and Scripting

How to find files created today in a particular directory?

Dear All, I want a Hp Ux command to find out the files created today in a particular directory or mountpoint. Kindly help. Thanks Bhaskar (10 Replies)
Discussion started by: sudiptabhaskar
10 Replies

8. Linux

List all files created today exclude last one

Hi, ALL thanks in advance, i listed all files using this command ls -ltr $(date +%Y%m%d)*.xmlbut i would like to exclude the last one created ; Best regard MEROUAN Use code tags, thanks. (4 Replies)
Discussion started by: merouan
4 Replies

9. Shell Programming and Scripting

Move all files except sys date (today) files in Solaris 10

I want to move all files from one directory to another directory excluding today (sysdate files) on daily basis. file name is in pattern file_2013031801, file_2013031802 etc (2 Replies)
Discussion started by: khattak
2 Replies

10. Shell Programming and Scripting

Search files with today date and files come anytime in between 10 pm to 1 am

Hi, i want to make script. In a directory everyday( exclude sat and sun) in between 10 pm to 1 am there are 2 files comes and when file comes it will mail us. Format for files is mentioned below. please help me on making this, and also have year end consider and if files come after 12 am it... (6 Replies)
Discussion started by: pallvi_mahajan
6 Replies
calendar(1)						      General Commands Manual						       calendar(1)

NAME
calendar - Writes reminder messages to standard output SYNOPSIS
calendar [-] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: calendar: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
[Tru64 UNIX] Calls calendar for all users who have a calendar file in their home directories and sends reminders by mail. This flag is usually used only by the superuser as part of daily administrative procedures. DESCRIPTION
The calendar command reads a file named calendar in your current (usually home) directory and writes to standard output any line in the file that contains the current date or the next day's date. The calendar command recognizes date formats such as Dec. 7 or 12/7. It also recognizes the special character * (asterisk) to match any month. For example, it interprets */7 or * 7 as the seventh day of every month. On Fridays, calendar writes all lines containing the dates for Friday, Saturday, Sunday, and Monday. It does not recognize holidays, so if the next day is a holiday calendar prints lines for that day, rather than for the next working day. For you to get reminder service when other users run calendar -, your calendar file must be readable by others (see the chmod command). NOTES
The calendar utility is marked LEGACY in XCU Issue 5. EXIT STATUS
The following exit values are returned: Successful completion. An error occurred. EXAMPLES
To display information in the calendar file that pertains to today and tomorrow, enter: calendar A typical calendar file might look like this: */25 - Prepare monthly report Aug. 12 - Fly to Denver aug 23 - board meeting Martha out of town - 8/23, 8/24, 8/25 8/24 - Mail car payment sat aug/25 - beach trip August 27 - Meet with Simmons August 28 - Meet with Wilson If today is Friday, August 24, then the calendar command displays: */25 - Prepare monthly report Martha out of town - 8/23, 8/24, 8/25 8/24 - Mail car payment sat aug/25 - beach trip August 27 - Meet with Simmons ENVIRONMENT VARIABLES
The following environment variables affect the execution of calendar: [Tru64 UNIX] If this variable is set, the calendar command uses its value as the full pathname of a template file that contains format strings. The strings consist of field descriptors and text characters which are used to provide a more robust set of allowable date formats in different languages using the appropriate settings of the environ- ment variables LANG or LC_TIME. See environ(5) for more information. The list of allowable field descriptions is provided in the date(1) reference page. Provides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the cor- responding value from the default locale is used. If any of the internationalization variables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, overrides the values of all the other interna- tionalization variables. Determines the locale for the interpretation of sequences of bytes of text data as characters (for example, sin- gle-byte as opposed to multibyte characters in input files). Determines the locale for the format and contents of diagnostic messages written to standard error. Determines the format of date strings recognized by the calendar command. Determines the location of message catalogues for the processing of LC_MESSAGES. FILES
Contains user calendar entries. Determines dates. Contains user information. SEE ALSO
Commands: chmod(1), date(1), mail(1), mailx(1) Environment: environ(5) Standards: standards(5) calendar(1)
All times are GMT -4. The time now is 10:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy