Try something like this to start with. If you find problems, show us what you did to fix them. First. Before saying 'this does not work':
Comment: this appears to be an attempt to do something else, and this is a problem you hit on the way to that something else's solution. It is an unusual request.
Or:
Is this homework?
This User Gave Thanks to jim mcnamara For This Post:
hi guys
i give "ps -ef | grep some_executable_file" on the command line.
this "some_executable_file" resides on many paths which r included in the PATH environment variable, so the output depicts only "some_executable_file" in the COMMAND column. how can i get the full path?
thanx (3 Replies)
How can i list every single file on a sun solaris server running 2.8 starting from '/' with the full path included in it?
example.
/
...
...
...
/etc/inetd.conf
/etc/passwd
/etc/shadow
...
...
...
/var/adm/messages
/var/adm/messages.0
/var/adm/messages.1
...
...
...... (4 Replies)
Hi,
I have written this shell script:
fl=`ls -1lrt $mylist | grep '\.xml$' | awk '{print $9}'`
echo $fl (1)
for i in $fl
do
for dir in $mylist
do
if
then
echo $dir/$i >> tmp (2)
fi
done
done
The mylist contains some directory names. The satement (1) gives the sorted list... (5 Replies)
This has been bugging me for a while. How can i list file to show full path.
/directory/test
$ ls file.tst
file.tst
$
desired output:
/directory/test/file.tst (2 Replies)
I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction?
for FILE in `cat list`; do
if ;
then
... (1 Reply)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Iam trying to load the full path of multiplie files in the same directory to an array if the filenames matches a pattern. The following is the current code;
where $input=C:\test
# change to and open the comparison directory
chdir("$input2") || die "Cannot change dir: $!";
opendir(DIR2,... (2 Replies)
Hi,
I would like to know how to grep all the paths in a file having extension .BMP
For e.g.
File Name :
sample.txt
File Content :
xxxxxxxxxxxxxxxxx
xxxxx/root/cdrive/picure.BMP xxxx
xxxxxxxxxxx
xxxxx/root/ddrive/picure.BMP xxxx
xxxxxxxxxxx
Expected Output : ... (4 Replies)
The bash will trim the folder to trim folder. Within each of the folders (there may be more than 1) and the format is always the same, are several .bam and matching .bam.bai files (file structure) and the bashunder that executes and trims the .bam as expected but repeats the.bam.bai extentions... (9 Replies)
Discussion started by: cmccabe
9 Replies
LEARN ABOUT HPUX
fs_setquota
FS_SETQUOTA(1) AFS Command Reference FS_SETQUOTA(1)NAME
fs_setquota - Sets the quota for the volume containing a file or directory
SYNOPSIS
fs setquota [-path <dir/file path>]
-max <max quota in kbytes> [-help]
fs setq [-p <dir/file path>] -m <max quota> [-h]
fs sq [-p <dir/file path>] -m <max quota> [-h]
DESCRIPTION
The fs setquota command sets the quota (maximum possible size) of the read/write volume that contains the directory or file named by the
-path argument.
To set the quota on multiple volumes at the same time, use the fs setvol command.
To display a volume's quota, use the fs examine, fs listquota, or fs quota command.
CAUTIONS
Currently, the maximum size of a volume is 2 terabytes (2^31 bytes).
OPTIONS -path <dir/file path>
Names the directory or file for which to set the host volume's quota. Partial pathnames are interpreted relative to the current working
directory, which is also the default value if this argument is omitted.
Specify the read/write path to the file or directory, to avoid the failure that results from attempting to change a read-only volume.
By convention, the read/write path is indicated by placing a period before the cell name at the pathname's second level (for example,
/afs/.abc.com). For further discussion of the concept of read/write and read-only paths through the filespace, see the fs mkmount
reference page.
-max <max quota>
Sets the maximum amount of file server disk space the volume can occupy. The quota value should be a positive integer followed by an
optional suffix: "K" for kibibytes (1024 bytes, the default), "M" for mebibytes (1024 kibibytes), "G" for gibibytes (1024 mebibytes),
and "T" for tebibytes (1024 gibibytes). A value of 0 sets an unlimited quota, but the size of the disk partition that houses the
volume places an absolute limit on the volume's size.
If the -path argument is omitted (to set the quota of the volume housing the current working directory), the -max switch must be
included with this argument.
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command imposes a maximum quota of 3000 kilobytes on the volume that houses the /afs/abc.com/usr/smith directory:
% fs setquota -path /afs/abc.com/usr/smith -max 3000
PRIVILEGE REQUIRED
The issuer must belong to the system:administrators group.
SEE ALSO fs_examine(1), fs_listquota(1), fs_quota(1), fs_mkmount(1), fs_setvol(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_SETQUOTA(1)