Sponsored Content
Full Discussion: Confused with date - listing
Top Forums Shell Programming and Scripting Confused with date - listing Post 302842715 by vgersh99 on Friday 9th of August 2013 05:41:08 PM
Old 08-09-2013
how many 'conditions' will you have?
For the sample conditions:
Code:
-files between 0100 and 0130  (mm of start < mm of end)
ls *.01[1-3]*
-files between 0100 and 0300  (hh of start > hh of end)
ls *.0[1-3]*
-files between 0100 and 0359  (mm of start < mm of end)
ls *.0[1-3][0-5][0-9]
-files between 0159 and 0500  (mm of start > mm of end)

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

long listing of files up to a given date

Hi I would like to a long list of files up to a given date. I've tried: ls -al > filelist but this command gives me all the files. I've also have tried the find command: find . -mtime -10 -type f -print > filelist This gives me information on active file within the past 10 days and... (2 Replies)
Discussion started by: rlh
2 Replies

2. Shell Programming and Scripting

listing files that do not belong to current date

How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies

3. UNIX for Dummies Questions & Answers

listing files that does not belong to current date

How do we list all the file names in a directory that does not belong to current date. (3 Replies)
Discussion started by: esh.mohan
3 Replies

4. UNIX for Advanced & Expert Users

Listing tomorrows date

I am writing a script to strip data from a log, strip last month and empty the log for the comming month. It works great at the moment, but during testing I decided to change the date to 12/31 and when I ran it, it did not find tomorrows date. Further testing revealed that no dbl digit month would... (2 Replies)
Discussion started by: theninja
2 Replies

5. UNIX for Dummies Questions & Answers

Listing file name and date

Hello. I want to make an unix script which create a file with the name and the date of creation of the different files that there are in a directory. Can do you please help me? Thank you in advance. (3 Replies)
Discussion started by: Jfka
3 Replies

6. Shell Programming and Scripting

Listing files that belong to a certain year date?

I'm trying to list files, first by size and I'm using something like this ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies

7. UNIX for Dummies Questions & Answers

Listing based on User and Date

listing based on user. I have files in some folder that come from many user -rwxrwxr-x 1 ratih pbank 4827112 Jun 8 08:37 S92TA-8.sgy -rwxrwxr-x 1 ratih pbank 4724568 Jun 8 08:37 S92TA-6.sgy -rwxrwxr-x 1 ratih pbank 4929656 Jun 8 08:37 S92TA-19.sgy -rwxrwxr-x 1 ratih ... (4 Replies)
Discussion started by: muhnandap
4 Replies

8. Shell Programming and Scripting

Date listing in a date range

Solaris 10 ksh88 Sorry for re-hashing some of this, but I can't find a proper solution in the forums. Starting with /a/archive containing (on and on date formatted directories) 20060313 20080518 20100725 20121015 20060314 20080519 ... (1 Reply)
Discussion started by: moesplace
1 Replies

9. AIX

Date not appearing when listing using ls -la

Hi everyone, this strange error suddenly popped up out of no where when I do a directory listing , the date part doesn't appear root@oradb:/backup>ls -la total 58069304 drwxr-xr-x 3 root system 4096 23 ▒▒▒ 21:56 . drwxr-xr-x 44 root system 1536 23 ▒▒▒ 21:47... (4 Replies)
Discussion started by: filosophizer
4 Replies

10. UNIX for Beginners Questions & Answers

Need help with listing file name and modified date on a huge directory

hi, We have a huge directory that ha 5.1 Million files in it. We are trying to get the file name and modified timestamp of the most recent 3 years from this huge directory for a migration project. However, the ls command (background process) to list the file names and timestamp is running for... (2 Replies)
Discussion started by: subbu
2 Replies
term(4) 						     Kernel Interfaces Manual							   term(4)

NAME
term - format of compiled term file SYNOPSIS
DESCRIPTION
Compiled terminfo descriptions are placed under the directory In order to avoid a linear search of a huge HP-UX system directory, a two- level scheme is used: where name is the name of the terminal, and c is the first character of name. Thus, can be found in the file Syn- onyms for the same terminal are implemented by multiple links to the same compiled file. The format has been chosen so that it is the same on all hardware. An 8-bit or longer byte is assumed, but no assumptions about byte ordering or sign extension are made. The compiled file is created using the program (see tic(1M)), and read by the routine. The file is divided into the following six parts: 1. The header section begins the file and contains six short integers in the following format: 1. Magic number (octal 0432); 2. Size, in bytes, of the names section; 3. Number of bytes in the Boolean section; 4. Number of short integers in the numbers section; 5. Number of offsets (short integers) in the strings section; 6. Size, in bytes, of the string table. Short integers are stored in two 8-bit bytes. The first byte contains the least significant 8 bits of the value; the second byte contains the most significant 8 bits. (Thus, the value represented is 256*second+first.) The value -1 is represented by other negative values are illegal. The -1 generally means that a capability is missing from this terminal. Note that this format corresponds to the hardware of the VAX and PDP-11. Machines where this does not correspond to the hardware read the integers as two bytes and compute the result. 2. The terminal names section comes next. It contains the first line of the terminfo description, listing the various names for the terminal, separated by the character. The section is terminated with an ASCII NUL character. 3. In the Boolean section, the Boolean flags have one byte for each flag. This byte is either or as the flag is absent or present, respectively. The capabilities are in the same order as they are listed in the file Between the Boolean section and the number section, a null byte will be inserted, if necessary, to ensure that the number section begins on an even byte. All short integers are aligned on a short word boundary. 4. The numbers section is similar to the flags section. Each capability consists of two bytes, and is stored as a short inte- ger. If the value represented is -1, the capability is considered missing. 5. The strings section is also similar. Each capability is stored as a short integer in the format above. A value of -1 means the capability is missing. Otherwise, the value is taken as an offset from the beginning of the string table. Special char- acters in or notation are stored in their interpreted form, not the printing representation. Padding information and parame- ter information are stored intact in uninterpreted form. 6. The final section is the string table. It contains all the values of string capabilities referenced in the string section. Each string is null terminated. Note that it is possible for to expect a different set of capabilities than are actually present in the file. Either the database might have been updated since has been recompiled (resulting in extra unrecognized entries in the file) or the program may have been recompiled more recently than the database was updated (resulting in missing entries). The routine must be prepared for both possibilities, which is why the numbers and sizes are included. Also, new capabilities must always be added at the end of the lists of Boolean, number, and string capabilities. The following example is an octal dump of the description for the HP Portable Computer (HP-110): 110|hp110|hp110a portable computer, am, xhp, da, db, mir, cols#80, lines#16, lm#0, cbt=Ei, bel=^G, cr= , tbc=E3, clear=E&a0y0CEJ, el=EK, ed=EJ, hpa=E&a%p1%dC, cup=E&a%p1%dy%p2%dC, cud1=EB, cub1=, cuf1=EC, cuu1=EA, cvvis=E&j@, dch1=EP, dl1=EM, smir=EQ, smso=E&dB, sgr0=E&d@, rmir=ER, rmso=E&d@, is2=E&j@, if=/usr/share/lib/tabset/stdcrt, il1=EL, kbs=, kcud1=EB, khome=Eh, kcub1=ED, kcuf1=EC, kcuu1=EA, rmkx=E&s0A, smkx=E&s1A, vpa=E&a%p1%dY, ind= , hts=E1, ht= , 0000 032 001 # 025  223 254 1 1 0 | 0020 h p 1 1 0 | h p 1 1 0 a p o r 0040 t a b l e c o m p u t e r 0060 001 001 001 001 001 0100 P 377 377 020 377 377 377 377 0120 377 377 377 377 003 005 377 377 007 0140 024 027 032 377 377 $ 4 377 377 377 377 0160 7 377 377 377 377 9 377 377 < ? D 0200 G 377 377 377 377 377 377 377 377 377 377 377 377 377 377 0220 377 377 J 377 377 377 377 377 377 M 377 377 377 377 0240 377 377 R 377 377 377 377 W Z 377 377 377 377 0260 377 377 377 377 377 377 _ 377 377 d 377 377 { 0300 377 377 ~ 377 377 377 377 377 377 377 377 377 377 200 0320 377 377 377 377 377 377 377 377 377 377 377 377 377 377 377 377 0340 377 377 377 377 377 377 377 377 377 377 377 377 203 377 377 0360 377 377 206 377 377 377 377 377 377 211 377 377 377 377 0400 377 377 214 217 225 377 377 377 377 377 377 377 377 0420 377 377 377 377 377 377 377 377 377 377 377 377 377 377 377 377 0520 377 377 233 377 377 245 377 377 377 377 247 377 377 0540 252 377 377 377 377 377 377 377 377 377 377 377 377 377 377 0560 377 377 377 377 377 377 377 377 377 377 033 i 007 0600 033 3 033 & a 0 y 0 C 033 J 033 K 0620 033 J 033 & a % p 1 % d C 033 & 0640 a % p 1 % d y % p 2 % d C 033 B 0660  033 C 033 A 033 & j @ 033 P 0700 033 M 033 Q 033 & d B 033 & d @ 0720 033 R 033 & d @ 033 & j @ / u 0740 s r / l i b / t a b s e t / s t 0760 d c r t 033 L  033 B 033 h 1000 033 D 033 C 033 A 033 & s 0 A 033 1020 & s 1 A 033 & a % p 1 % d Y 1040 033 1 1046 WARNINGS
Total compiled entries cannot exceed 4096 bytes. The name field cannot exceed 128 bytes. Hewlett-Packard Company supports only those terminals that are listed on the current list of supported devices. However, both non-sup- ported and supported terminals may be in the terminfo database. If non-supported terminals are used, they may not work correctly. FILES
compiled terminal capability data base SEE ALSO
tic(1M), untic(1M), terminfo(4). term(4)
All times are GMT -4. The time now is 07:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy