01-23-2009
how to use "size" command???
hello sir,
I am trying to use the size command.I typed :-
It says that the format is not compatible.I am getting this error for any input file to this size command.I tried using the "-A" and "-B" options but still I couldnt solve it.
Can you please tell me the format of txt files.And how to use size command for various formats like .c,.tar,etc.......
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Can anyone let me know what is the maximum file size that can be given as input for the "Diff" Command in Unix?
I have a file size as large as 28MB and which can also increase. Will I face any issues with such a file size. If yes, What is the other alternative.
Thanks in advance for... (1 Reply)
Discussion started by: Neeraja
1 Replies
2. UNIX for Advanced & Expert Users
Hi All,
I'm trying to find a command like similar to "touch" which would let me change the file size property.
For ex: I have a file of size 1MB using the command i would like to set/update the size something like 1KB.
Is it possible? Is there any such command which would accomplish this... (3 Replies)
Discussion started by: sriharshareddyk
3 Replies
3. UNIX for Dummies Questions & Answers
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
4. UNIX for Advanced & Expert Users
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
5. Shell Programming and Scripting
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
6. Shell Programming and Scripting
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to get the system RAM size from "top" command's output by the following but it is not working.
top | sed "s/^Mem.**\(*\), *//" (10 Replies)
Discussion started by: royalibrahim
10 Replies
8. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
9. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
10. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
size(1) General Commands Manual size(1)
NAME
size - Prints the size of an object file and the sizes of its segments or sections
SYNOPSIS
size [-d -o -x -A -B -V] [file1 ...fileN]
OPTIONS
The size command accepts the following options: Prints size information in decimal (default), octal, and hexadecimal format, respectively.
Specifies System V-style output, which dumps size and address information for each section of the object file. By default, numbers are
printed in decimal. Specifies Berkeley (4.3BSD)-style output, which is the default for Tru64 UNIX systems. This output contains size
information for each segment and the size of the entire object file. By default, the segment size information is printed in decimal format
and the object file size is printed in hexadecimal and decimal formats. Prints the version of size that you are using.
DESCRIPTION
The size command prints information about the text, rdata, data, sdata, bss, and sbss sections of each file. The file can be an object or
an archive. If you do not specify a file, size uses a.out as the default.
[SVR4] By default, the size command displays its output as if the A option were used.
ENVIRONMENT VARIABLES
The following environment variables affect the behavior of size:
SEE ALSO
Programmer's Guide
size(1)