zero byte with String


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting zero byte with String
# 1  
Old 10-12-2006
zero byte with String

My program would be creating a file, incase of non data from database it would only able to produce 'END, logically it would be file created by oracle in unix.

this file is showing zero byte but actully there are 4 char in file.This is not required, therefore what is command line should be written so that if the string matches then rm the file fromn location.

i have executed the commond based of zero byte but no luck.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Logrotate 0 byte file

Hello, For various reasons I decided to rebuild my log server on a new microSD. To simplify matters I restored a backed up copy of the appropriate config files and uploaded them to the new log server once syslog-ng was setup. The issue I am running into now is when logrotate compresses the log... (3 Replies)
Discussion started by: MyUserName7000
3 Replies

2. Shell Programming and Scripting

Move zero byte files

Hi, I have a requirement to move zero byte files to an archive folder. I have the below script and it works fine if I run it from where the file is present. But when I run the script from different folder, I am getting error that file is not present. Please help. #!/bin/ksh ... (11 Replies)
Discussion started by: Prasannag87
11 Replies

3. Shell Programming and Scripting

Calculate byte size of string

Hi, I have task to merge multiple XML's to one big XML. In doing this i have to calculate the byte size of each XML which i will be recieving as a string from a code and append all the recieved XML's to single file. The reason being the byte size and the offset will help me to extract only... (7 Replies)
Discussion started by: chetan.c
7 Replies

4. IP Networking

Total byte

Hi I've a pkts trace and I'm performing some test on it. I'd like to figure out also the numbers of total byte in that trace. Any idea? thanks in advance D. (0 Replies)
Discussion started by: Dedalus
0 Replies

5. Shell Programming and Scripting

Remove a byte(Last byte from the last line)

Hi All Can anyone please suggest me how to remove the last byte from a falt file .This is from the last line's last BYTE. Please suggest me something. Thank's and regards Vinay (1 Reply)
Discussion started by: vinayrao
1 Replies

6. Shell Programming and Scripting

Check if 2 files are identical byte-to-byte?

In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server. For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match. Please... (4 Replies)
Discussion started by: krishmaths
4 Replies

7. UNIX for Dummies Questions & Answers

Number of Bits in the Byte

Char BYTE=0XFE... How can we find the number of Bits in this Byte? Thanks, Harika (4 Replies)
Discussion started by: harikamamidala
4 Replies

8. Programming

Printing out Byte in C

Hi all, Can anyone advise on how to display the data in a byte variable, i.e can i use printf("%s", vairable_name);? Cheers (2 Replies)
Discussion started by: dwgi32
2 Replies

9. Shell Programming and Scripting

0 byte file with no name????

Please help me in removing the 2nd file : -rw-rw-rw- 1 fup03a fup03a 9216 Aug 16 00:45 med_delay_log -rw-rw-rw- 1 fup03a fup03a 0 Aug 16 18:04 (5 Replies)
Discussion started by: miltonkeynesguy
5 Replies

10. Programming

Byte Padding

Hi, Can someone explain what is byte padding? For ex: struct emp{ char s; int b; char s1; int b1; long b3; char s3; } What will be the size of this structure? Thanks (6 Replies)
Discussion started by: naan
6 Replies
Login or Register to Ask a Question
NEWFS_V7FS(8)						    BSD System Manager's Manual 					     NEWFS_V7FS(8)

NAME
newfs_v7fs -- construct a new 7th Edition(V7) File System SYNOPSIS
newfs_v7fs [-FZ] [-B byte-order] [-n inodes] [-s sectors] [-V verbose] special DESCRIPTION
newfs_v7fs builds a 7th Edition(V7) file system on the specified special. If it is a device, the size information will be taken from the disk label and before running newfs_v7fs the disk must be labeled using disklabel(8); the proper fstype is ``Version 7''. Otherwise, the size must be specified on the command line. V7 filesystem's block size and sector size are 512 byte. Disk address limits are 24 bit. The following arguments are supported: -B byte-order Specify the metadata byte order of the file system to be created. Valid byte orders are 'be', 'le', and 'pdp'. If no byte order is specified, the file system is created in host byte order. -F Create file system to a regular file (needs the -s option). -n inodes This specifies the number of inodes for the filesystem. If the number of inodes exceeds 65536, it is reduced to 65536. -s sectors Create file system with specified number of disk sectors. -V verbose This controls the amount of information written to stdout: 0 No output. 1 Overall size, ilist size, endian and filename length. 2 A progress bar. 3 4 More verbose message. The default is 3. -Z Fill file with zeroes instead of creating a sparse file. SEE ALSO
disklabel(5), disktab(5), disklabel(8), diskpart(8) BSD
April 29, 2011 BSD