09-14-2014
HP-UX still does at KBs.. so you have to do size/1024 to get the size in MBs or size/1024/1024 for GBs.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
In my shell program, I need to test for a specific size of a text file before it can be imported into an oracle table.
If the size is less than that number, my program should stop processing. What is the correct command to do this test?
Thanks! (1 Reply)
Discussion started by: GEBRAUN
1 Replies
2. Shell Programming and Scripting
As I'm a newbie to UNIX, very newbie in fact, could anyone humour me and tell me how I'd find just the file size in bytes for a specific file?
Or at least just the specific line from the ls -a for the file - call it file1
I know this sounds bad but I don't seem to be getting very far at this... (3 Replies)
Discussion started by: nortypig
3 Replies
3. AIX
Hi everybody,
Is there a command that can create a new file with a specific size?
Thanks in advance. (3 Replies)
Discussion started by: aldowsary
3 Replies
4. Solaris
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies
5. UNIX for Dummies Questions & Answers
Hello dear unix command line friends !
I'm looking for a simple combinaison of ls & awk (maybe grep) to print:
list of folders of a directory
|_ ordered by size
like what I have with
$ du -sk ./* | sort -rn
printing that result:
8651520 ./New Virtual Machine_1
8389120 ./Redhat
... (1 Reply)
Discussion started by: holister
1 Replies
6. Shell Programming and Scripting
I wan to view files in a directory of a specific date. For example a log directory has log files . I want to view the list of the files which were generated on 01-May-2011.
Is there any option/proces to perform it?? (1 Reply)
Discussion started by: mady135
1 Replies
7. UNIX for Dummies Questions & Answers
I have a space delimited text file with 1,000,000+ columns? I would only like to view specific ones (let's say through 1:10), how can I do that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
Ex...
abc_0702,
abc_0709,
abc_782
abc_1234 ...etc
need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
7 Replies
9. Shell Programming and Scripting
hi
i want to find a command in history for specific date .
is it possible that i can view ?? (1 Reply)
Discussion started by: scriptor
1 Replies
10. UNIX and Linux Applications
Hello,
Is there an autosys command like autorep but instead of searching based on job name, I want to search using the start or end date
For example, I want to find out which jobs ran today 02/01/2016 and it would be even better if I could search either by start or end date depending on what... (0 Replies)
Discussion started by: crsuribe
0 Replies
LEARN ABOUT OPENSOLARIS
stmfaddviewentry
stmfAddViewEntry(3STMF) SCSI Target Mode Framework Library Functions stmfAddViewEntry(3STMF)
NAME
stmfAddViewEntry - add a view entry for a given logical unit
SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfAddViewEntry(stmfGuid *logicalUnit,
stmfViewEntry *viewEntry);
PARAMETERS
logicalUnit The identifier of the logical unit to which this view entry is being added.
viewEntry The view entry to add to the specified logical unit identifier.
DESCRIPTION
The stmfAddViewEntry() function adds a view entry for a given logical unit.
RETURN VALUES
The following values are returned:
STMF_ERROR_LUN_IN_USE The specified logical unit number is already in use for this logical unit.
STMF_ERROR_NOT_FOUND The ID specified for logicalUnit was not found in the system.
STMF_ERROR_VE_CONFLICT Adding this view entry is in conflict with one or more existing view entries.
STMF_STATUS_SUCCESS The API call was successful.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
libstmf(3LIB), attributes(5)
NOTES
If luNbrValid in the stmfViewEntry structure is set to B_FALSE, the framework will assign a logical unit number for this view entry. veIn-
dexValid must be set to B_FALSE when adding a view entry. On successful return, veIndexValid will be set to B_TRUE and veIndex will contain
the view entry index assigned to this view entry by the framework.
SunOS 5.11 9 Jun 2008 stmfAddViewEntry(3STMF)