I have a directory MYDIR
In which i have several directories 1,2,3,4....
Now, In each of these directories i have several files a.dat, b.dat, c.dat, d.dat.....
MYDIR
----1
---------a.dat
---------b.dat
---------c.dat
---------d.dat
----2
---------a.dat
---------b.dat
---------c.dat... (2 Replies)
Hi,
Is there any way to get count number of lines in all files which have more than o bytes in current directory
for example :
in /user/sri/ there are 3 files
abc 0 bytes
def 5 bytes
ghi 10 bytes
i need to get wc -l for all files which have > 0 bytes at a time ..is... (6 Replies)
Hi Gurus,
I have a directory A, which has some 0 byte files in it.
This directory also has a subdirectory B which also has some 0 byte files in it.
The problem:
I only need to find out the names of the 0 byte files in the directory A.
I'm using the following command
find . -name *.zip... (6 Replies)
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)
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)
Hi,
In a list of commands executed in a script, how do you make sure that the previous command worked fine?
I have a list of awk commands and I want to make sure that the script aborts if any command leaves a zero byte file. (1 Reply)
Hi.....
Thanks for this wonderful forum....
My request:
I have toatally 5 unix servers in which many applications are working
I need to set a trap to identify 0 byte files if any are created proactively.
For example:
find /apps/fresco/ -mtime 1 -size 0c –print >>... (3 Replies)
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)
Hi Team,
I'm looking for a command which removes files having 0 byte of having only header line (1 line).
My ETL process generates these files. Few files are not having header, in that case if no data from source, it will be 0 byte and few files are having header, in that case if no data from... (7 Replies)
Discussion started by: ace_friends22
7 Replies
LEARN ABOUT HPUX
unlink
link(1M)link(1M)NAME
link, unlink - execute and system calls without error checking
SYNOPSIS
file1 file2
file
DESCRIPTION
The and commands perform their respective system calls on their arguments, abandoning most error checking.
These commands can be executed only by users who have appropriate privileges.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
RETURN VALUE
and return the following values:
Operation successful.
Input syntax error.
The or call failed.
WARNINGS
If a directory that contains files other than and is unlinked, the files become orphans, unless they are also linked by some other direc-
tory.
Not all file systems permit linking to directories.
SEE ALSO ln(1), rm(1), link(2), unlink(2).
STANDARDS CONFORMANCE link(1M)