Hi,
I am new to Unix shell scripting. Can you please help me with this immediate requirement to code.. The requirement is as given below.
In a directory say Y, I have files like this.
PP_100000_28062006_122731_746.dat
PP_100000_28062006_122731_745.dat
PP_100000_28062006_122734_745.dat... (4 Replies)
hello
i have a requirement where i have a direcotry in which i get files in the format
STOCKS.20080114.dat
STOCKS.20080115.dat
STOCKS.20080117.dat
STOCKS.20080118.dat
i need to loop through the directory and sort by create date descending order and i need to process the first file.
... (1 Reply)
hello people
i need your help please
i want to achieve the following with the simplest, most efficient shell-tools:
i have a directory with a lot of files from users.
the script should check which partition the dir is on
if the partition with the directory is more than 90% full
... (2 Replies)
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)
:cool:
Hi all,
I have a pecular issue in sorting these files in Solaris environment.
All the below files are modified on November 4th, but I want to sort these files as per date column (eg: 01May07_1623 = ddmmmyy_hhmm)
Nov 4 18:27 SONYELEC00.GI22973.01May07_1623.gpg
Nov 4 18:27... (4 Replies)
hi there,
I have a directory which contents I can parse dynamically. I end up with a file list. I then want to display those files sorted by date, oldest files first. I have very very little PERL experience...Would anyone know how to do that ? Thanks in advance. (8 Replies)
Hi, I am a newbie to shell programming and I need some help in sorting a list of files in ascending order of date in the filenames.
The file format is always : IGL01_AC_D_<YYYYMMDD>_N01_01
For example, in a directory MyDirectory I have the following files:
IGL01_AC_D_20110712_N01_01.dat... (11 Replies)
Hi Experts,
I have a filelist collected from another server , now want to sort the output using date/time stamp filed.
- Filed 6, 7,8 are showing the date/time/stamp.
Here is the input:
#----------------------------------------------------------------------
-rw------- 1 root ... (3 Replies)
Hi I have a problem, I have a large group of archive files in a folder some are later versions of the same archive, the only difference btween them is that the archiving program we use appends the name with a code for it to keep track of in its data base, and the modification date.
I am starting... (6 Replies)
Hi,
I'm an absolute beginner in shell programming.
I would need a script for a NAS that makes the csv files sorted by date and always monthly a zip.
In the current month, the data should be integrated into this folder, so there are only monthly files.
Thanks for your help (1 Reply)
Discussion started by: Pipo
1 Replies
LEARN ABOUT ULTRIX
sortm
sortm(1mh)sortm(1mh)Name
sortm - sort messages
Syntax
sortm [ msgs ] [ +folder ] [ options ]
Description
The command sorts all the messages in the current folder into chronological order according to the contents of the Date: fields of the mes-
sages.
By default, sorts all the messages in the current folder. You can select particular messages in the folder by giving a range of messages.
You can also sort messages in another folder by specifying the folder name.
If encounters a message without a Date: field, or if the message has a Date: field that cannot parse, it attempts to keep the message in
the same relative position. However, this does not always work; for instance, if the first message encountered lacks a date which can be
parsed, then it will usually be placed at the end of the messages being sorted.
When complains about a message which it cannot order, it complains about the message number prior to sorting.
Options-datefield field
Specifies the name of the header field to use when making the date comparison. If you have a special field in each message, such
as Delivery-Date:, then the -datefield switch can be used to tell which field to examine. If you do not give this option, the
default is to use the Date: header field.
-help Prints a list of all the valid options to this command.
-verbose
-noverbose
Displays the general actions that it is taking to place the folder in sorted order. The -noverbose option performs these actions
silently. The default is -noverbose.
The default settings for this command are:
+folder defaults to the current folder
msgs defaults to all
-datefield date
-noverbose
Profile Components
Path: To determine your MH directory
Examples
The following example sorts all the messages in the folder
% sortm +meetings
The next example sorts messages 10-30 in the folder called
% sortm +test 10-30
Files
The user profile.
See Alsofolder(1mh)sortm(1mh)