09-25-2019
No worries.
We are always here to help.
10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. 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
5. 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
6. 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
7. 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
8. 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
9. 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
10. 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
packf(1mh) packf(1mh)
Name
packf - compress a folder into a single file
Syntax
packf [ +folder ] [ msgs ] [ -file name ] [ -help ]
Description
Each message in a folder is normally stored as a separate file. The command takes all messages from the current folder and copies them to
a single specified file. Each message in the file is separated by four <CTRL/A>s and a newline.
You can specify a folder other than the current folder by using the +folder argument. If you do not want all the messages in a folder to
be packed into one file, you can specify a number of messages or a range of messages with message numbers.
The first message packed will become the current message. If you specify a +folder argument, that folder will become the current folder.
When messages have been packed into a file using you can separate them into individual messages using the command. See
Options
-file name
Specifies the file in which you want the message(s) to be stored. If you specify an existing file then the specified messages
will be appended to the end of that file. Otherwise, a new file will be created and the messages placed in it. If you do not
specify a filename, attempts to place the messages in a file called in the current working directory. If this file does not
exist, asks whether you want to create it.
-help Prints a list of the valid options to this command.
The default settings for this command are:
+folder defaults to the current folder
msgs defaults to all
-file ./msgbox
Examples
The first example shows all the messages in the folder being packed into a file called
% packf +lrp -file planning
The next example shows how prompts you if you do not specify a -file option. A file called is created by in your home directory, and mes-
sages 3 to 5 are packed into it:
% packf +lrp 3-5
Create file "/machine/disk/username/msgbox"? y
Profile Components
Path: To determine the user's Mail directory
Msg-Protect: To set protections when creating a new file
Files
$HOME/.mh_profile The user profile.
See Also
burst(1mh)
packf(1mh)