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)
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)
hi Everbody,
I had file names as shown
file_01_20101104.txt
file_01_20101105.txt
file_02_20101104.txt
file_01_20101205.txt
file_03_20101104.txt
file_02_20101105.txt
Now i want to list them based on the date in the file name as shown...
file_01_20101104.txt
file_02_20101104.txt... (3 Replies)
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)
Hello I would like to ask for help with a script to search a directory that contains many log files and based on a users input after being prompted, they enter a date range down to the hour which searches the files that contain that range.
I dont know how to go about this. I am hoping that the... (5 Replies)
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
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)
Hello,:)
Can anyone help me out in giving a script for my requirement please..
I have a number of files in a directory like
somenumber.0100
somenumber.0130
somenumber.0159
somenumber.0300
somenumber.0330
somenumber.0525
.
.
.
here, the number after the dot is the time (hhmm)
I... (6 Replies)
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)
Hello All
I have a Solaris 10 machine, wherein processes are run in various unix users.
a. How do I list the memory usage per user?
b. Can I get a top command kind of output per user rather than entire machine?
Thanks
Sunil Kumar (3 Replies)
Discussion started by: msgforsunil
3 Replies
LEARN ABOUT OSF1
msgchk
msgchk(1) General Commands Manual msgchk(1)NAME
msgchk - check for messages (only available within the message handling system, mh)
SYNOPSIS
msgchk [-help] [-nodate] [-notify all | | | mail | | | nomail] [users ... ]
OPTIONS
Prints a list of the valid options for this command. Prints the date when you last read your mail. This is the default behavior of msgchk.
The -nodate option can be used of you do not want to print this date. Indicates under what circumstances msgchk should produce a message.
There are three legal values: all, mail, and nomail. The default is -notify all, which reports the status of the maildrop regardless of
whether it has mail in it or not. The -notify mail option reports the status of the maildrop only if there is mail waiting. The
-notify nomail option reports the status of the maildrop only if there is no mail in it. Specifies the source which are checked for mail.
The only value allowed is file, which is the user's maildrop. Additional values are supported only for use with other mail systems.
DESCRIPTION
The msgchk program checks all known mail drops for mail that is waiting for you. It displays whether you have mail waiting to be read or
not and shows the date that you last read your mail.
You can check other user's maildrops by specifying their user names as the users argument on the command line.
RESTRICTIONS
msgchk does not understand the $MAILDROP environmental variable. If mail is fetched from a location other than /usr/spool/mail/$USER,
msgchk will not be able to determine if new mail has arrived. However, inc can still be used to fetch mail when it arrives.
For this version, the -source option only supports the value file. Additional values are supported for use only with other mail systems.
EXAMPLES
This example shows a user Smith checking his own maildrop: % msgchk Smith:
New file source mail waiting ; last read on
Tue, 07 Jun 1988 17:21:49 WET The next example shows a user checking the maildrops of two other local users on the same system, Rabb
and Jones: % msgchk Rabb Jones Rabb:
No file-source mail waiting ; last read on
Tue, 07 Jun 1997 13:22:25 WET Jones:
New file source mail waiting ; last read on
Tue, 07 Jun 1997 17:30:05 WET
FILES
The user profile. The system customization file. The user's maildrop.
SEE ALSO inc(1)msgchk(1)