Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2002
    Location
    San Francisco
    Posts
    251

    Unanswered: FIND my time....

    I'm pretty new in UNIX.....


    I receive a file every night, the file is in format myfileYYYYMMDD_HHMM The problem is that the file sometimes arrives before midnight, so it has different date, how can I FIND files between let's say 11pm and 6am?

    I was thinking about FIND command, but FIND command has all parameters in days.... (I use SUN and KORN).

    thanks


    jiri
    Last edited by playernovis; 06-16-03 at 23:26.

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool

    No need to 'find' the time if you follow this procedure:

    1) File is received in filein directory.
    2) Process any file in filein, whith the specified format.
    3) Move processed file to files_processed directory.

    This way any file found in filein directory you know it is not processed! -- therefore no need to check for any 'time'.
    Last edited by LKBrwn_DBA; 07-03-03 at 12:34.

  3. #3
    Join Date
    Jan 2003
    Location
    Scotland
    Posts
    17
    Originally posted by LKBrwn_DBA
    No need to 'find' the time if you follow this procedure:

    1) File is received in filein directory.
    2) Process any file in filein, whith the specified format.
    3) Move processed file to files_processed directory.

    This way any file found in filein directory you know it is not processed! -- therefore no need to check for any 'time'.
    You could pattern match in perl, sed.

  4. #4
    Join Date
    Jul 2003
    Location
    US
    Posts
    314

    Lightbulb files received

    Since this would be a very simple operation and u dont need to go for complex solutions like perl or something, simply use awk and you should be fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •