Sponsored Content
Full Discussion: Move zero byte files
Top Forums Shell Programming and Scripting Move zero byte files Post 302981667 by jlliagre on Friday 16th of September 2016 05:23:28 PM
Old 09-16-2016
Quote:
Originally Posted by MadeInGermany
There is a bug: -name . only matches if the start directory is .
...
I put another "quote" around the $ARCHIVE_PATH that avoids expansion+globbing in the current shell.
Thanks for the corrections MiG! I should have test the script I posted ;-)
This User Gave Thanks to jlliagre For This Post:
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

shell script to find zero byte files

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)
Discussion started by: ramky79
2 Replies

2. Shell Programming and Scripting

problem with 0 byte and large files

how to remove all zero byte files in a particular directory and also files that are morew than 1GB. pLEASE let me know (3 Replies)
Discussion started by: dsravan
3 Replies

3. UNIX for Dummies Questions & Answers

row count of all files with more than 0 byte

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)
Discussion started by: sri2005
6 Replies

4. Shell Programming and Scripting

finding 0 byte files in current directory only

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)
Discussion started by: ramky79
6 Replies

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

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

7. Shell Programming and Scripting

using c programming in unix to delete zero-byte files in a specified directory

we were asked to make a program that deletes all zero-byte files in a psecified directory. we need to use sysytem_calls like: scandir(),chdir(),stat() and remove(). (3 Replies)
Discussion started by: sogetsu009
3 Replies

8. Emergency UNIX and Linux Support

Given commands were created as 0 byte files

I were checking few processes running and check what at the files currently I have in my home directory by giving below commands $ ps -ef|grep sleep $ ls -lt | pg after awhile the first column of my commands were created as files given below... -rw-rw-rw- 1 prd 0 Mar 25 09:42 ls... (7 Replies)
Discussion started by: dateez
7 Replies

9. UNIX for Dummies Questions & Answers

Exit status as zero byte files

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)
Discussion started by: genehunter
1 Replies

10. Shell Programming and Scripting

Remove files having 0 byte or only header

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
PERL585DELTA(1) 					 Perl Programmers Reference Guide					   PERL585DELTA(1)

NAME
perl585delta - what is new for perl v5.8.5 DESCRIPTION
This document describes differences between the 5.8.4 release and the 5.8.5 release. Incompatible Changes There are no changes incompatible with 5.8.4. Core Enhancements Perl's regular expression engine now contains support for matching on the intersection of two Unicode character classes. You can also now refer to user-defined character classes from within other user defined character classes. Modules and Pragmata o Carp improved to work nicely with Safe. Carp's message reporting should now be anomaly free - it will always print out line number information. o CGI upgraded to version 3.05 o charnames now avoids clobbering $_ o Digest upgraded to version 1.08 o Encode upgraded to version 2.01 o FileCache upgraded to version 1.04 o libnet upgraded to version 1.19 o Pod::Parser upgraded to version 1.28 o Pod::Perldoc upgraded to version 3.13 o Pod::LaTeX upgraded to version 0.57 o Safe now works properly with Carp o Scalar-List-Utils upgraded to version 1.14 o Shell's documentation has been re-written, and its historical partial auto-quoting of command arguments can now be disabled. o Test upgraded to version 1.25 o Test::Harness upgraded to version 2.42 o Time::Local upgraded to version 1.10 o Unicode::Collate upgraded to version 0.40 o Unicode::Normalize upgraded to version 0.30 Utility Changes Perl's debugger The debugger can now emulate stepping backwards, by restarting and rerunning all bar the last command from a saved command history. h2ph h2ph is now able to understand a very limited set of C inline functions -- basically, the inline functions that look like CPP macros. This has been introduced to deal with some of the headers of the newest versions of the glibc. The standard warning still applies; to quote h2ph's documentation, you may need to dicker with the files produced. Installation and Configuration Improvements Perl 5.8.5 should build cleanly from source on LynxOS. Selected Bug Fixes o The in-place sort optimisation introduced in 5.8.4 had a bug. For example, in code such as @a = sort ($b, @a) the result would omit the value $b. This is now fixed. o The optimisation for unnecessary assignments introduced in 5.8.4 could give spurious warnings. This has been fixed. o Perl should now correctly detect and read BOM-marked and (BOMless) UTF-16 scripts of either endianness. o Creating a new thread when weak references exist was buggy, and would often cause warnings at interpreter destruction time. The known bug is now fixed. o Several obscure bugs involving manipulating Unicode strings with "substr" have been fixed. o Previously if Perl's file globbing function encountered a directory that it did not have permission to open it would return immediately, leading to unexpected truncation of the list of results. This has been fixed, to be consistent with Unix shells' globbing behaviour. o Thread creation time could vary wildly between identical runs. This was caused by a poor hashing algorithm in the thread cloning routines, which has now been fixed. o The internals of the ithreads implementation were not checking if OS-level thread creation had failed. threads->create() now returns "undef" in if thread creation fails instead of crashing perl. New or Changed Diagnostics o Perl -V has several improvements o correctly outputs local patch names that contain embedded code snippets or other characters that used to confuse it. o arguments to -V that look like regexps will give multiple lines of output. o a trailing colon suppresses the linefeed and ';' terminator, allowing embedding of queries into shell commands. o a leading colon removes the 'name=' part of the response, allowing mapping to any name. o When perl fails to find the specified script, it now outputs a second line suggesting that the user use the "-S" flag: $ perl5.8.5 missing.pl Can't open perl script "missing.pl": No such file or directory. Use -S to search $PATH for it. Changed Internals The Unicode character class files used by the regular expression engine are now built at build time from the supplied Unicode consortium data files, instead of being shipped prebuilt. This makes the compressed Perl source tarball about 200K smaller. A side effect is that the layout of files inside lib/unicore has changed. Known Problems The regression test t/uni/class.t is now performing considerably more tests, and can take several minutes to run even on a fast machine. Platform Specific Problems This release is known not to build on Windows 95. Reporting Bugs If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at http://bugs.perl.org. There may also be information at http://www.perl.org, the Perl Home Page. If you believe you have an unreported bug, please run the perlbug program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of "perl -V", will be sent off to perlbug@perl.org to be analysed by the Perl porting team. You can browse and search the Perl 5 bugs at http://bugs.perl.org/ SEE ALSO
The Changes file for exhaustive details on what changed. The INSTALL file for how to build Perl. The README file for general stuff. The Artistic and Copying files for copyright information. perl v5.18.2 2013-11-04 PERL585DELTA(1)
All times are GMT -4. The time now is 07:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy