Sponsored Content
Full Discussion: 0 byte file with no name????
Top Forums Shell Programming and Scripting 0 byte file with no name???? Post 302132507 by miltonkeynesguy on Friday 17th of August 2007 07:44:41 AM
Old 08-17-2007
Thanks...
I have got the following output...I did not understand the CTRK + V ?
Can you please explain

byfusp01 $ ls | od -t a
0000000 sp nl d i r _ t i m e . c f g nl d
0000020 i r _ t i m e . t m p nl f i l e
0000040 _ d e l a y . s h nl m e d _ d e
0000060 l a y _ l o g _ 2 0 0 7 0 8 1 5
0000100 nl m e d _ d e l a y _ l o g _ 2
0000120 0 0 7 0 8 1 6 nl m e d _ d e l a
0000140 y _ l o g _ 2 0 0 7 0 8 1 7 nl m
0000160 e d _ d e l a y _ n e w 2 . d s
0000200 d nl m e d _ d e l a y _ t e m p
0000220 . t x t nl
0000225
 

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
RFIO_CHMOD(3)						      Rfio Library Functions						     RFIO_CHMOD(3)

NAME
rfio_chmod, rfio_fchmod - change access mode of a directory/file SYNOPSIS
#include <sys/types.h> #include "rfio_api.h" int rfio_chmod (const char *path, mode_t mode); int rfio_fchmod (int s, mode_t mode); DESCRIPTION
rfio_chmod sets the access permission portion of the mode of a directory/file to the bit pattern in mode. rfio_fchmod is identical to rfio_chmod but works on the file descriptor s returned by rfio_open. path specifies the logical pathname relative to the current directory or the full pathname. mode is constructed by OR'ing the bits defined in <sys/stat.h> under Unix or "statbits.h" under Windows/NT: S_IRUSR 0000400 read by owner S_IWUSR 0000200 write by owner S_IXUSR 0000100 execute/search by owner S_IRGRP 0000040 read by group S_IWGRP 0000020 write by group S_IXGRP 0000010 execute/search by group S_IROTH 0000004 read by others S_IWOTH 0000002 write by others S_IXOTH 0000001 execute/search by others The effective user ID of the process must match the owner of the file or be super-user. If a directory is writable and has the sticky bit set, files/directories within that directory can be removed or renamed only if: the effective user ID of the requestor matches the owner ID of the file or the effective user ID of the requestor matches the owner ID of the directory or the file is writable by the requestor or the requestor is super-user. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
EPERM The effective user ID does not match the owner of the file and is not super-user. ENOENT The named file/directory does not exist or is a null pathname. EBADF s is not a valid file descriptor. EACCES Search permission is denied on a component of the path prefix or write permission on the file itself is denied. EFAULT path is a NULL pointer. ENOTDIR A component of path prefix is not a directory. ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN. SENOSHOST Host unknown. SENOSSERV Service unknown. SECOMERR Communication error. SEE ALSO
Castor_limits(4) AUTHOR
LCG Grid Deployment Team LCG
$Date: 2005/03/31 13:13:02 $ RFIO_CHMOD(3)
All times are GMT -4. The time now is 11:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy