06-26-2013
Please delete this then. I'll continue looking elsewhere.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a list of files in a folder.I have a search pattern in the file name and i want to remove the file with that pattern.How can that be made
List of files
xxxxx.ID1.yyyyy.zzzzz
yyyy.ID2.bbbbb.kkkkk
xxxxx.ID1.yyyyy.zzzzz
yyyy.ID4.bbbbb.kkkkk
xxxxx.ID1.yyyyy.zzzzz... (2 Replies)
Discussion started by: sparks
2 Replies
2. Shell Programming and Scripting
hi,,
i hav a file with many lines.i need to remove all lines before a line begginning with a specific pattern from the file because these lines are not required.
Can u help me out with either a perl script or shell script
example:-
if file initially contains lines:
a
b
c
d
.1.2
d
e
f... (2 Replies)
Discussion started by: raksha.s
2 Replies
3. Shell Programming and Scripting
I want a shell script that will traverse a file system starting at specific path.
And look at all file names for repeating sequences of and remove them from the file name.
The portion of the name that gets removed has to be a repeating sequence of the same characters.
So the script would... (3 Replies)
Discussion started by: z399y
3 Replies
4. Shell Programming and Scripting
Input file
matrix-remodelling_associated_8_
aurora_interacting_1_
L20
von_factor_A_domain_1
ATP_containing_3B_
.
.
Output file
matrix-remodelling_associated_8
aurora_interacting_1
L20
von_factor_A_domain_1
ATP_containing_3B
.
. (3 Replies)
Discussion started by: perl_beginner
3 Replies
5. Shell Programming and Scripting
Hi,
I have more than 30,000 records in a flat file. I want to remove footer from the file by searching a string pattern for the footer.
Example.... let the flat file test.dat contains below records.
record1
record2
record3
..
..
..
record31000
Total records 31000
I want to remove the... (6 Replies)
Discussion started by: gani_85
6 Replies
6. Shell Programming and Scripting
Hi,
I writing a shell program to remove the data from output of the find which matches a list in a file
I am using the below find command to get the list of files
x=`find . -name test*.dat`
the output of the find command is as follows
test1.dat
test2.dat
test3.dat
test4.dat... (4 Replies)
Discussion started by: pals70423
4 Replies
7. Shell Programming and Scripting
I have one requirement to delete all lines from a file if it matches below scenario. File contains three column. Employee Number, Employee Name and Employee ID
Scenario is: delete all line if Employee Number (1st column) contains below
1. Non-numeric Employee Number
2. Employee Number that... (3 Replies)
Discussion started by: anshu ranjan
3 Replies
8. UNIX for Dummies Questions & Answers
I have a file like this - I want to remove the 2015 (or any four digit #) from column $4 so I can get:
Nov 05 1997 /ifs/inventory2/
for example. Im not sure how. Should I use an if statement with awk?
Jan 16 2015 23:45 /ifs/sql_file
Jan 16 2015 23:45 /ifs/sql_file
Nov 05 2015 1997... (4 Replies)
Discussion started by: newbie2010
4 Replies
9. Shell Programming and Scripting
Sorry for the weird title but i have the following problem.
We have several files which have between 10000 and about 500000 lines in them. From these files we want to remove lines which contain a pattern which is located in another file (around 20000 lines, all EAN codes). We also want to get... (28 Replies)
Discussion started by: SDohmen
28 Replies
10. UNIX for Beginners Questions & Answers
In the awk below I am trying to remove all lines above and including the pattern Test or Test2. Each block is seperated by a newline and Test2 also appears in the lines to keep but it will always have additional text after it. The Test to remove will not. The awk executed until the || was added... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT XFREE86
fs_diskfree
FS_DISKFREE(1) AFS Command Reference FS_DISKFREE(1)
NAME
fs_diskfree - Shows data about the partition housing a directory or file
SYNOPSIS
fs diskfree [-path <dir/file path>+] [-human] [-help]
fs df [-p <dir/file path>+] [-hu] [-he]
fs di [-p <dir/file path>+] [-hu] [-he]
DESCRIPTION
The fs diskfree command formats and displays information about the partition that houses the volume containing the specified directory or
file, including its size and how much space is currently used.
To display information about the volume itself, use the fs examine command. The fs examine and fs quota commands also display information
about a volume.
CAUTIONS
The partition-related statistics in this command's output do not always agree with the corresponding values in the output of the standard
UNIX df command. The statistics reported by this command can be up to five minutes old, because the Cache Manager polls the File Server for
partition information at that frequency. Also, on some operating systems, the df command's report of partition size includes reserved space
not included in this command's calculation, and so is likely to be about 10% larger.
OPTIONS
-path <dir/file path>+
Names a file or directory that resides on the partition about which to produce output. Partial pathnames are interpreted relative to
the current working directory, which is also the default value if this argument is omitted.
-human
Print space in a "human-readable" format. Instead of always printing space in kilobytes, show disk space in kilobytes, megabytes,
gigabytes, terabytes, or petabytes, as appropriate.
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The output reports the following information about the volume and partition that houses each file or directory:
Volume Name
The name of the volume.
total
The partition's total size. If -human is not specified, this value is in kilobytes.
used
The amount of space used on the partition. If -human is not specified, this value is in kilobytes.
avail
The amount of space available on the partition. If -human is not specified, this value is in kilobytes.
%used
The percentage of the partition's total space that is used (the "used" statistic divided by the "kbytes" statistic, times 100).
If the %used statistic is greater than 90%, it is marked with the string "<<WARNING" at the right margin.
If the volume is a read-only volume, the output includes information about only one of the partitions that houses it, generally the one on
the file server machine with the lowest preference rank. To verify which machine the output is referring to, use the vos listvldb command
to list the volume's locations, and the vos partinfo command to display the size of each one.
EXAMPLES
The following example shows the output for the partitions housing the volumes "user.smith" and "sun4x_56.bin":
% fs diskfree -path /afs/abc.com/usr/smith /afs/abc.com/sun4x_56/bin
Volume Name total used avail %used
user.smith 4177920 3841258 336662 92% <<WARNING
sun4x_56.bin 4423680 3174500 1249180 72%
PRIVILEGE REQUIRED
The issuer must have the "r" (read) permission on the ACL of the root directory of the volume that houses the file or directory named by
the -path argument, and "l" (list) permission on the ACL of each directory that precedes it in the pathname.
SEE ALSO
fs_examine(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FS_DISKFREE(1)