Hi all,
I have a file entries.txt that contains a number of entries all on seperate lines e.g.
test1
test2
test3
test4
Then in a directory called /TestFiles I have a number of files that could contain the above text in the file name
e.g. qwertytest1.csv qwertytest2.csv... (2 Replies)
Hi,
' recgrep find . | xargs grep ' is used to scan the contents recursively. I have a different requirement. I need to scan just the names and check for a pattern and display with fullpath. Is that already available? Closest that I am trying is 'ls -R | grep pattern' Here I would get multiple... (1 Reply)
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Hi, I am a unix newbie.I need to write a shell script to move my oracle READ WRITE datafiles from one serevr to another. I need to move it from /u01/oradata/W1KK/.. to /u01/oradata/W2KK,
/u02/oradata/W1KK/.. to /u02/oradata/W2KK.
That is, I actaully am moving my datafiles from one database to... (2 Replies)
Need a script to move the files from one dir to other dir and at the same time it has to read the log in the source dir. Please help me ASAP. (4 Replies)
Hello Comunity
I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside.
it called : cpflatdir src_dir dest_dir
Pleaze help me!
Thank you in... (2 Replies)
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
Hello all,
I'm very new to shell scripting and need quite urgently to do this thing for my student job. I have a directory called "vectors" with a bunch of files all named ".vector". also i have for each of those files a directory with the name . I now want to move each of those *.vector files... (2 Replies)
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
LEARN ABOUT OPENSOLARIS
size
size(1) User Commands size(1)NAME
size - print section sizes in bytes of object files
SYNOPSIS
size [-f] [-F] [-n] [-o] [-V] [-x] filename...
DESCRIPTION
The size command produces segment or section size information in bytes for each loaded section in ELF object files. size prints out the
size of the text, data, and bss (uninitialized data) segments (or sections) and their total.
size processes ELF object files entered on the command line. If an archive file is input to the size command, the information for each
object file in the archive is displayed.
When calculating segment information, the size command prints out the total file size of the non-writable segments, the total file size of
the writable segments, and the total memory size of the writable segments minus the total file size of the writable segments.
If it cannot calculate segment information, size calculates section information. When calculating section information, it prints out the
total size of sections that are allocatable, non-writable, and not NOBITS, the total size of the sections that are allocatable, writable,
and not NOBITS, and the total size of the writable sections of type NOBITS. NOBITS sections do not actually take up space in the filename.
If size cannot calculate either segment or section information, it prints an error message and stops processing the file.
OPTIONS
The following options are supported:
-f Prints out the size of each allocatable section, the name of the section, and the total of the section sizes. If there is no section
data, size prints out an error message and stops processing the file.
-F Prints out the size of each loadable segment, the permission flags of the segment, then the total of the loadable segment sizes. If
there is no segment data, size prints an error message and stops processing the file.
-n Prints out non-loadable segment or non-allocatable section sizes. If segment data exists, size prints out the memory size of each
loadable segment or file size of each non-loadable segment, the permission flags, and the total size of the segments. If there is no
segment data, size prints out, for each allocatable and non-allocatable section, the memory size, the section name, and the total
size of the sections. If there is no segment or section data, size prints an error message and stops processing.
-o Prints numbers in octal, not decimal.
-V Prints the version information for the size command on the standard error output.
-x Prints numbers in hexadecimal, not decimal.
EXAMPLES
The examples below are typical size output.
Example 1 Producing size information
example% size filename
2724 + 88 + 0 = 2812
Example 2 Producing allocatable section size information
example% size -f filename
26(.text) + 5(.init) + 5(.fini) = 36
Example 3 Producing loadable segment size information
example% size -F filename
2724(r-x) + 88(rwx) + 0(rwx) = 2812 ... (If statically linked)
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbtool |
+-----------------------------+-----------------------------+
SEE ALSO as(1), cc(1B), ld(1), ar.h(3HEAD), a.out(4), attributes(5)NOTES
Since the size of bss sections is not known until link-edit time, the size command will not give the true total size of pre-linked objects.
SunOS 5.11 16 Oct 1996 size(1)