Hi,
I am trying to caluate the time elasped by the job to run.For that i have used the following command:
I have one file which contains the following
more start.txt
991 STARTED Fri Aug 10 14:04:20 2007
Starting Job JOB_NAME. (...)
1036 STARTED Fri Aug 10 14:04:31 2007
... (1 Reply)
I'm working on a SunOS 5.8 box and I have to search recursively in directories matching a certain pattern for files with a .log extension that have changed within the last n-minutes, and than select the least recently used file and open it for reading, preferrably with tail. Does anyone know how I... (3 Replies)
Hi All,
I want to find out the time before 30 minutes. I am able to do with in hours limit.
date
Fri Aug 21 06:50:00 BST 2009
TZ=CST+1 date
Fri Aug 21 04:50:02 CST 2009
Can any one please help me (6 Replies)
HI All,
can some one please help me how to fine the difference between two time stamps say
a= Nov 10, 2009 9:21:25 AM
b= Nov 10, 2009 10:21:25 AM
I want to find difference between the a & b
I googled and tried with some options but no luck.
My OS is AIX (1 Reply)
Hello All -
I have a script that grabs data from the net and outputs the following data
46029 46.144 -124.510 2010 07 26 22 50 320 4.0 6.0 2.2 9 6.8 311 1012.1 -0.9 13.3 13.5 13.3 - -
46041 47.353 -124.731 2010 07 26 22 50 250 2.0 3.0 1.6 8 6.4 - 1011.6 - ... (0 Replies)
Hi,
I need to find the last system shutdown time. I got a command last that is used for this.But the command is not give the year. Below i posted the sample output
last -x |grep shutdown
shutdown system down 2.6.31.5-server- Tue Jan 11 11:45 - 11:46 (00:00)
shutdown system down ... (6 Replies)
Hi ,
I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( .
how to find cpu's system high time and user time high in a script??
thanks , help would be appreciated !
:) (9 Replies)
I have a file wich contains time formats and i need to get the time difference
TIME1 TIME2
==================================
20120624192555.6Z 20120624204006.5Z
which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (1 Reply)
I have a file wich contains time formats and i need to get the time difference
TIME1 TIME2
=============== ===================
20120624192555.6Z 20120624204006.5Z
which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time... (23 Replies)
Dear all,
I am kindly seeking assistance on the following issue.
I am working with data that is sampled every 0.05 hours (that is 3 minutes intervals) here is a sample data from the file
5.00000 15.5030
5.05000 15.6680
5.10000 16.0100
5.15000 16.3450
5.20000 16.7120
5.25000... (4 Replies)
Discussion started by: malandisa
4 Replies
LEARN ABOUT V7
ls
LS(1) General Commands Manual LS(1)NAME
ls - list contents of directory
SYNOPSIS
ls [ -ltasdrucifg ] name ...
DESCRIPTION
For each directory argument, ls lists the contents of the directory; for each file argument, ls repeats its name and any other information
requested. The output is sorted alphabetically by default. When no argument is given, the current directory is listed. When several
arguments are given, the arguments are first sorted appropriately, but file arguments appear before directories and their contents. There
are several options:
-l List in long format, giving mode, number of links, owner, size in bytes, and time of last modification for each file. (See below.)
If the file is a special file the size field will instead contain the major and minor device numbers.
-t Sort by time modified (latest first) instead of by name, as is normal.
-a List all entries; usually `.' and `..' are suppressed.
-s Give size in blocks, including indirect blocks, for each entry.
-d If argument is a directory, list only its name, not its contents (mostly used with -l to get status on directory).
-r Reverse the order of sort to get reverse alphabetic or oldest first as appropriate.
-u Use time of last access instead of last modification for sorting (-t) or printing (-l).
-c Use time of last modification to inode (mode, etc.) instead of last modification to file for sorting (-t) or printing (-l).
-i Print i-number in first column of the report for each file listed.
-f Force each argument to be interpreted as a directory and list the name found in each slot. This option turns off -l, -t, -s, and
-r, and turns on -a; the order is the order in which entries appear in the directory.
-g Give group ID instead of owner ID in long listing.
The mode printed under the -l option contains 11 characters which are interpreted as follows: the first character is
d if the entry is a directory;
b if the entry is a block-type special file;
c if the entry is a character-type special file;
- if the entry is a plain file.
The next 9 characters are interpreted as three sets of three bits each. The first set refers to owner permissions; the next to permissions
to others in the same user-group; and the last to all others. Within each set the three characters indicate permission respectively to
read, to write, or to execute the file as a program. For a directory, `execute' permission is interpreted to mean permission to search the
directory for a specified file. The permissions are indicated as follows:
r if the file is readable;
w if the file is writable;
x if the file is executable;
- if the indicated permission is not granted.
The group-execute permission character is given as s if the file has set-group-ID mode; likewise the user-execute permission character is
given as s if the file has set-user-ID mode.
The last character of the mode (normally `x' or `-') is t if the 1000 bit of the mode is on. See chmod(1) for the meaning of this mode.
When the sizes of the files in a directory are listed, a total count of blocks, including indirect blocks is printed.
FILES
/etc/passwd to get user ID's for `ls -l'.
/etc/group to get group ID's for `ls -g'.
LS(1)