11-16-2010
--removed--
Last edited by ctsgnb; 11-16-2010 at 11:43 AM..
Reason: Thx to Scruti noticing me i missed post #1...Morning!
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
I have a large Filesystem on an AIX server and another one on a Red Hat box. I have syncd the two filesystems using rsysnc.
What Im looking for is a script that would compare to the two filesystems to make sure the bits match up and the number of files match up.
its around 2.8 million... (5 Replies)
Discussion started by: zippdawg2001
5 Replies
3. Shell Programming and Scripting
Hi
I am new to shell scripting.I want to create a batch file which creates a desired number of files with a specific size say 1MB each to consume space.How can i go about it using for loop /any other loop condition using shell script?
Thanks (3 Replies)
Discussion started by: swatideswal
3 Replies
4. Shell Programming and Scripting
Hi,
i have more than 1000 data files(.txt) like this
first file format:
178.83 554.545
179.21 80.392
second file:
178.83 990.909
179.21 90.196
etc.
I want to combine them to the following format:
178.83,554.545,990.909,...
179.21,80.392,90.196,... (7 Replies)
Discussion started by: mr_monocyte
7 Replies
5. 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
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
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
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
GFRM(1) GFRM(1)
NAME
gfrm - remove Gfarm files, directories, or file replicas
SYNOPSIS
gfrm [ -frRnqv ] [ -I file-section ] [ -h filesystem-node ] [ -D domain-name ] [ -H hostfile ] [ -N num-of-replicas ] [ -j num-of-threads ]
gfarm-URL ...
DESCRIPTION
gfrm removes each specified file. It does not remove directories unless the -r or -R option is specified. '.' or '..' cannot be removed.
When the -I option is specified, gfrm removes the specified file section. File section is an architecture name for executable files, or a
fragment index for a regular file.
With the -h, -D, or -H option, gfrm removes file replicas of each specified file or file section on the specified filesystem node(s). All
file replicas of a file cannot be removed, unless the -f option is specified.
OPTIONS
-f Even when all file replicas are specified by the -h, -D, or -H option, forcibly deletes all the file replica. In this case, the
specified file will be deleted.
-j num-of-threads
Specifies the number of threads to delete file replicas simultaneously. This option is only available when gfrm is compiled by an
OpenMP C compiler.
-n Prints file names to be deleted, but does not delete them.
-q Does not print any verbose message.
-r, -R Removes all entries under the directories specified by the command-line argument recursively.
-v Prints verbose messages.
-h filesystem-node
Specifies a filesystem node from which file replicas will be removed. With the -I option, a file replica of the specified file sec-
tion will be removed.
-D domain-name
Specifies a domain name of filesystem nodes on which file replicas will be removed. With the -I option, a file replica of the spec-
ified file section will be removed.
-H hostfile
Specifies a hostfile that lists filesystem nodes on which file replicas will be removed. With the -I option, a file replica of the
specified file section will be removed.
if ``-'' is specified, standard input is used to read the host list.
-I file-section
Specifies the file section to be removed. File section is an architecture name, such as sparc-sun-solaris8, for executable files,
and a fragment index for regular files.
-N num-of-replicas
Specifies the maximum number of file replicas. If files has more number of file replicas than specified, reduce the number of file
replicas.
-? Displays a list of command options.
Gfarm 13 November 2006 GFRM(1)