07-23-2009
I have a script which performs env set up kind of action and it takes 6 minutes to complete.
Out of the 6 minutes,1.5 minutes is being spent to copy a folder which contains executables.
I am jus doing a cp -rf....
So i want to try an alternative if there is any to save some time.....
I tried to tar and then copy....but that too accounts to the same amount of time
10 More Discussions You Might Find Interesting
1. Solaris
im using the sunstudio but it is very slow , is there ant other GUI debugger
for sun Solaris or at list some ways to make it faster ?
im using to debug throw telnet connection connected to remote server
thanks (0 Replies)
Discussion started by: umen
0 Replies
2. Shell Programming and Scripting
One of our servers runs Solaris 8 and does not have "ls -lh" as a valid command. I wrote the following script to make the ls output easier to read and emulate "ls -lh" functionality. The script works, but it is slow when executed on a directory that contains a large number of files. Can anyone make... (10 Replies)
Discussion started by: shew01
10 Replies
3. Shell Programming and Scripting
hii everyone ,
i have a file in which i have line numbers.. file name is file1.txt
aa bb cc "12" qw
xx yy zz "23" we
bb qw we "123249" jh
here 12,23,123249. is the line number
now according to this line numbers we have to print lines from other file named... (11 Replies)
Discussion started by: kumar_amit
11 Replies
4. Red Hat
Hi,
Can any one help me out in solving the problem i have a linux database server it is tooo slow that i am unable to open even the terminial is there any solution to get rid of this problem.How to make this server faster.
Thanks & Regards
Venky (0 Replies)
Discussion started by: venky_vemuri
0 Replies
5. Shell Programming and Scripting
Hi All,
I have some 80,000 files in a directory which I need to rename. Below is the command which I am currently running and it seems, it is taking fore ever to run this command. This command seems too slow. Is there any way to speed up the command. I have have GNU Parallel installed on my... (6 Replies)
Discussion started by: shoaibjameel123
6 Replies
6. Shell Programming and Scripting
Hi all,
In bash scripting, I use to read files:
cat $file | while read line; do
...
doneHowever, it's a very slow way to read file line by line.
E.g. In a file that has 3 columns, and less than 400 rows, like this:
I run next script:
cat $line | while read line; do ## Reads each... (10 Replies)
Discussion started by: AlbertGM
10 Replies
7. HP-UX
we have 30 GB files on our filesystem which we need to copy daily to 25 location on the same machine (but different filesystem).
cp is taking 20 min to do the copy and we have 5 different thread doing the copy.
so in all its taking around 2 hr and we need to reduce it.
Is there any... (9 Replies)
Discussion started by: shipra_31
9 Replies
8. Shell Programming and Scripting
I have script like below, who is picking number from one file and and searching in another file, and printing output.
Bu is is very slow to be run on huge file.can we modify it with awk
#! /bin/ksh
while read line1
do
echo "$line1"
a=`echo $line1`
if
then
echo "$num"
cat file1|nawk... (6 Replies)
Discussion started by: mirwasim
6 Replies
9. Shell Programming and Scripting
I have the below command which is referring a large file and it is taking 3 hours to run. Can something be done to make this command faster.
awk -F ',' '{OFS=","}{ if ($13 == "9999") print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12 }' ${NLAP_TEMP}/hist1.out|sort -T ${NLAP_TEMP} |uniq>... (13 Replies)
Discussion started by: Peu Mukherjee
13 Replies
10. Shell Programming and Scripting
Hello,
I am under Ubuntu 18.04 Bionic.
I have one shell script run.sh (which is out of my topic) to run files under multiple directories and one file to control all processes running under those directories (control.sh).
I set a cronjob task to check each of them with two minutes of intervals.... (3 Replies)
Discussion started by: baris35
3 Replies
refile(1) General Commands Manual refile(1)
NAME
refile - file message in other folders (only available within the message handling system, mh)
SYNOPSIS
refile [msgs] [+folder] [options]
OPTIONS
Refiles the draft message, or the current message in your +drafts folder, if you have one set up. You cannot give a msgs argument when you
use this option. Moves a file into a folder. This option takes a file from its directory and places it in the named folder, as the next
message in the folder. The file must be formatted as a legal mail message. This means that the message must have the minimum header fields
separated from the body of the message by a blank line or a line of dashes. Prints a list of the valid options to this command. Keeps a
copy of the message in the source folder. Normally, refile removes the messages from the original folder when it refiles them. The -link
option keeps a copy in the original folder, as well as filing a copy in the new folder. Preserves the number of a message in the new
folder. Normally, when a message is refiled in to another folder, it is set to the next available number in that folder. The -preserve
option keeps the number of the message the same in the new folder as it had been in the old.
You cannot have two messages with the same number in one folder, so you should use this option with care. Specifies the source
folder to take messages from. Normally, messages are refiled from the current folder into another folder. However, you can take mes-
sages from a different folder by using the -src +folder option to specify the alternative source folder.
DESCRIPTION
Use the refile command to move the specified message from the current folder to another folder. You can refile messages in more than one
folder by giving multiple folder names as arguments.
If you do not specify a message, the current message is refiled. You can refile a message other than the current message by giving its num-
ber as a msgs argument. You can also refile more than one message at a time by specifying more than one message number, or a range of mes-
sage numbers, or a message sequence. See mark(1) for more information on sequences.
The current folder remains the same unless the -src option is specified; in that case, the source folder becomes current. Normally, the
last message specified becomes the current message. However, if the -link option is used, the current message is not changed.
If the Previous-Sequence: entry is set in the file, in addition to defining the named sequences from the source folder, refile will also
define those sequences for the destination folders. See mh_profile(4) for information concerning the previous sequence.
PROFILE COMPONENTS
Path: To determine your Mail directory
Folder-Protect: To set protections when creating a new folder
rmmproc: Program to delete the message
EXAMPLES
The following example refiles messages 3 and 5 in the folder +records: % refile 3 5 +records The next example files the current message
into two folders: % refile +jones +map The next example takes message 13 in the current folder and refiles it in the +test folder. The mes-
sage remains in the current folder as well as appearing in the +test folder. % refile -link 13 +test The next example takes a message from
the folder +test when it is not the current folder, and places it in the folder +outbox: % refile 3 -src +test +outbox
FILES
The user profile.
SEE ALSO
folder(1), mark(1), mh_profile(4)
refile(1)