10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am having a situation now to delete a huge number of temp files created during run times approx. 16700+ files. We have never imagined that we will get this this much big list of files during run time. It worked fine for lesser no of files in the list. But when list is huge we are... (7 Replies)
Discussion started by: mad man
7 Replies
2. Shell Programming and Scripting
Want to sftp large number of files ... approx 150 files will come to server every minute. (AIX box)
Also need make sure file has been sftped successfully...
Please let me know :
1. What is the best / faster way to transfer files?
2. should I use batch option -b so that connectivity will be... (3 Replies)
Discussion started by: vegasluxor
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a large number of subdirectories (>200), and in each of these directories there is a file with a name like "opp1234.dat".
I'd like to know how I could change the names of these files to say "out.dat" in all these subdirectories in one go.
Thanks! (5 Replies)
Discussion started by: lost.identity
5 Replies
4. Shell Programming and Scripting
Hi All,
I have a big file which looks like this:
abc 34.32
cdf 343.45
computer 1.34
ladder 2.3422
I have some 100000 .TXT files which look like this:
computer
cdf
align
I have to open each of the text files and read the words from the text files. Then I have to look into that... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
5. Shell Programming and Scripting
Hi All,
I have searched this forum for related posts but could not find one that fits mine. I have a shell script which removes all the XML tags including the text inside the tags from some 4 million XML files.
The shell script looks like this (MODIFIED):
find . "*.xml" -print | while read... (6 Replies)
Discussion started by: shoaibjameel123
6 Replies
6. UNIX for Dummies Questions & Answers
Hi. I need to delete a large number of files listed in a txt file. There are over 90000 files in the list. Some of the directory names and some of the file names do have spaces in them.
In the file, each line is a full path to a file:
/path/to/the files/file1
/path/to/some other/files/file 2... (4 Replies)
Discussion started by: inakajin
4 Replies
7. Shell Programming and Scripting
Hellow i have a large number of files that i want to concatenate to one. these files start with the word 'VOICE_' for example
VOICE_0000000000
VOICE_1223o23u0
VOICE_934934927349
I use the following code:
cat /ODS/prepaid/CDR_FLOW/MEDIATION/VOICE_* >> /ODS/prepaid/CDR_FLOW/WORK/VOICE
... (10 Replies)
Discussion started by: chriss_58
10 Replies
8. UNIX for Dummies Questions & Answers
I want to tar large number of files about 150k.
i am using the find command as below to create a file with all file names.
& then trying to use the tar -I command as below.
# find . -type f -name "gpi*" > include-file
# tar -I include-file -cvf newfile.tar
This i got from one of the posts... (2 Replies)
Discussion started by: crux123
2 Replies
9. Shell Programming and Scripting
Hi
on solaris and oracle 10g2, I have number of users created in Oracle, I wonder if I have a list of the usernames will it be possible to remove the users quickly ?
I want to keep the users access to system but oracle.
some thing like shell script may be ?:confused:
I am trying to... (4 Replies)
Discussion started by: upengan78
4 Replies
10. Shell Programming and Scripting
I have a task to move more than 35000 files every two hours, from the same directory to another directory based on a file that has the list of filenames
I tried the following logics
(1)
find . -name \*.dat > list
for i in `cat list` do mv $i test/ done
(2)
cat list|xargs -i mv "{}"... (7 Replies)
Discussion started by: bryan
7 Replies
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 Also
folder(1mh)
sortm(1mh)