Sponsored Content
Full Discussion: 0 byte file with no name????
Top Forums Shell Programming and Scripting 0 byte file with no name???? Post 302132508 by miltonkeynesguy on Friday 17th of August 2007 07:51:29 AM
Old 08-17-2007
The character is "sp"
when i write "rm sp" obviously it would say file not found.
Can you please tell how to proceed ....
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find if a file is zero byte or not?

hi, How to check if a file or files are of zero bytes and if yes, then to print their names? Ashu (1 Reply)
Discussion started by: er_ashu
1 Replies

2. 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

3. UNIX for Dummies Questions & Answers

ftp 0 byte file

I have some clients uploading 0byte files to my ftp server unfortunately they dial in to an isp first so I'm not having any luck figuring out where they are coming from. I'm looking for a way to have the ftp server reject 0 byte files I checked man on vsftpd and did not see anything is there... (1 Reply)
Discussion started by: jjmill1979
1 Replies

4. 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

5. Shell Programming and Scripting

delete zero byte file

Hello I have a requirement where i need to find the zero byte size file in the directory and need to delete that zero byte file. Thanks (2 Replies)
Discussion started by: dsdev_123
2 Replies

6. Shell Programming and Scripting

Need specific byte positions of a file

Hello , I need to extract data from specific byte positions of a file. I have tried the below command awk ' { printf "%s", substr($0, 642363,642369}' filename to extract data between byte positions 642363 and 642369 . However I did not get the expected result. I am new to awk... (6 Replies)
Discussion started by: rmv
6 Replies

7. Shell Programming and Scripting

Checking the file for non-zero byte

Hi, An 'If' clause has to be executed if file1.txt has any contents in it. Suggest us... (2 Replies)
Discussion started by: lavnayas
2 Replies

8. Shell Programming and Scripting

Perl- Output file is always 0 byte

Hi all, I am new to perl programming. However i have a script that connects to the database and spools that into an output file. Strange thing is that sometimes this script works and sometimes the ouput spool file is always 0 byte. I have verified the sql query and the query always returns... (5 Replies)
Discussion started by: amit1_x
5 Replies

9. Shell Programming and Scripting

Get Compressed byte offset from .gz file

Hi , I have a .gz file whose contents look like below. data1^filename1 data2^filename2. .. . . Is it possible to find out the byte offset of each record from the .gz file. Like in an uncompressed file. grep -nb "Filename" give the byte offset of the record in this case. ... (4 Replies)
Discussion started by: chetan.c
4 Replies

10. 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
MEMCHR(3)						     Linux Programmer's Manual							 MEMCHR(3)

NAME
memchr, memrchr, rawmemchr - scan memory for a character SYNOPSIS
#include <string.h> void *memchr(const void *s, int c, size_t n); void *memrchr(const void *s, int c, size_t n); void *rawmemchr(const void *s, int c); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): memrchr(), rawmemchr(): _GNU_SOURCE DESCRIPTION
The memchr() function scans the first n bytes of the memory area pointed to by s for the character c. The first byte to match c (inter- preted as an unsigned character) stops the operation. The memrchr() function is like the memchr() function, except that it searches backwards from the end of the n bytes pointed to by s instead of forwards from the beginning. The rawmemchr() function is similar to memchr(): it assumes (i.e., the programmer knows for certain) that the character c lies somewhere in the string s, and so performs an optimized search for the character c (i.e., no checking for the terminating null byte, or use of an argu- ment, n, to limit the range of the search). If the character c is not in the string s, then rawmemchr() may proceed to search beyond the end of the string, and the result is unspecified. The folowing call is a fast means of locating a string's terminating null byte: char *p = rawmemchr(s, ''); RETURN VALUE
The memchr() and memrchr() functions return a pointer to the matching byte or NULL if the character does not occur in the given memory area. The rawmemchr() function returns a pointer to the matching byte, if one is found. If no matching byte is found, the result is unspecified. VERSIONS
rawmemchr() first appeared in glibc in version 2.1. memrchr() first appeared in glibc in version 2.2. CONFORMING TO
The memchr() function conforms to SVr4, 4.3BSD, C89, C99, POSIX.1-2001. The memrchr() function is a GNU extension, available since glibc 2.1.91. The rawmemchr() function is a GNU extension, available since glibc 2.1. SEE ALSO
ffs(3), index(3), rindex(3), strchr(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strstr(3), wmemchr(3) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2009-12-04 MEMCHR(3)
All times are GMT -4. The time now is 02:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy