12-14-2006
Creat a File with a Specific Size
Hi everybody,
Is there a command that can create a new file with a specific size?
Thanks in advance.
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
I've been working on getting a script to take size, dir name and file name variables from an input file and creating the same dir structure along with the file of specific size.
An example of the input file:
size/dirname/filename
2100/JAN_06/12345ABC.TCC
2354/FEB_06/24564XYZ.NOS... (2 Replies)
Discussion started by: nxd25
2 Replies
3. 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
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. Shell Programming and Scripting
Hi all,
I am very new in programming.
Can anyone please help me in the matter below?
I have one raw file like:
gi|77|ref|NC_002971.3| Coxiella burnetii RSA 493, complete genome 6371 ATCGTGGTTGTGGTTCAT 5032 P 2 12
gi|71|ref|NC_005773.3| Pseudomonas syringae pv.... (4 Replies)
Discussion started by: iammitra
4 Replies
6. 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
7. UNIX for Dummies Questions & Answers
Hello world,
I just learnt we can create a directory with custom size in a Linux server (say Redhat). Is it true? I'm asking because the only data (I can think of) a directory's inode holds is the files and 'sub-dir's. How can a new empty directory be of some required size? :wall:
PS : In... (2 Replies)
Discussion started by: satish51392111
2 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. HP-UX
Dear,
Can anyone inform me the command to view specific file size in megabyte in hp-ux? (2 Replies)
Discussion started by: makauser
2 Replies
10. UNIX for Beginners Questions & Answers
There is away to make a window pane a specific size. I just forgot how to do it.
Something like this:
Ctrl-A : split-window -l xx -h xx
Anyone know the right way to do this?
Thanks. (1 Reply)
Discussion started by: ignatius
1 Replies
LEARN ABOUT HPUX
elf64_fsize
elf_fsize(3E) elf_fsize(3E)
NAME
elf32_fsize, elf64_fsize - return the size of an object file type for elf32 files, return the size of an object file type for elf64 files,
respectively.
SYNOPSIS
[flag... ] file... [library] ...
DESCRIPTION
gives the size in bytes of the 32-bit file representation of count data objects with the given type. The library uses version ver to cal-
culate the size (see elf(3E) and elf_version(3E)).
Constant values are available for the sizes of fundamental types.
Elf_Type File Size Memory Size
------------------------------------------------------
ELF_T_ADDR ELF32_FSZ_ADDR sizeof(Elf32_Addr)
ELF_T_BYTE 1 sizeof(unsigned char)
ELF_T_HALF ELF32_FSZ_HALF sizeof(Elf32_Half)
ELT_T_OFF ELF32_FSZ_OFF sizeof(Elf32_Off)
ELF_T_SWORD ELF32_FSZ_SWORD sizeof(Elf32_Sword)
ELF_T_WORD ELF32_FSZ_WORD sizeof(Elf32_Word)
returns zero if the value of type or ver is unknown. See elf_xlate(3E) for a list of the type values.
gives the size in bytes of the 64-bit file representation of count data objects with the given type. The library uses version ver to cal-
culate the size (see elf(3E) and elf_version(3E)).
Constant values are available for the sizes of fundamental types.
Elf_Type File Size Memory Size
------------------------------------------------------
ELF_T_ADDR ELF64_FSZ_ADDR sizeof(Elf64_Addr)
ELF_T_BYTE 1 sizeof(unsigned char)
ELF_T_HALF ELF64_FSZ_HALF sizeof(Elf64_Half)
ELT_T_OFF ELF64_FSZ_OFF sizeof(Elf64_Off)
ELF_T_SWORD ELF64_FSZ_SWORD sizeof(Elf64_Sword)
ELF_T_WORD ELF64_FSZ_WORD sizeof(Elf64_Word)
returns zero if the value of type or ver is unknown. See elf_xlate(3E) for a list of the type values.
SEE ALSO
elf(3E), elf_version(3E), elf_xlate(3E).
elf_fsize(3E)