04-01-2014
have a further look at the options of the find command. There is one about size that should be very useful.
Have a go and let us know how you get on with the code you use (so other people can refer to it in future)
I hope that this helps,
Robin
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
as we can find file greater than 1 MB with find command as:
find /dir -name '*' -size +1M
find /dir/* -name '*' -size +1M
but wats its doing is , its finding files only in current directory not in sub-directories. i want files from sub-directories too.
Please help... Thanx in... (3 Replies)
Discussion started by: manoj_dahiya22
3 Replies
2. UNIX for Dummies Questions & Answers
I have a directory (and many sub dirs beneath) on AIX system, containing thousands of file. I'm looking to get a list of all directory containing "*.pdf" file.
I know basic syntax of find command, but it gives me list of all pdf files, which numbers in thousands. All I need to know is, which... (4 Replies)
Discussion started by: r7p
4 Replies
3. Shell Programming and Scripting
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Discussion started by: manishabh
3 Replies
4. Shell Programming and Scripting
Hi Guys and Gals,
I'm having some difficulty putting this check into a shell script. I would like to search a particular directory for a number of files. The logic I have is pretty simple:
Find file named *.txt that are newer than <this file> and count them
If the number of files is equal to... (4 Replies)
Discussion started by: bbbngowc
4 Replies
5. UNIX for Dummies Questions & Answers
A newbie question...
I need to get a list of the Files and folders which are greater then a specific date. I want write the output to a Text file.
What I know ls -lrt gives me list of all the files ordered by date. Also ls > fileName will write the results to a text file.
Please help (6 Replies)
Discussion started by: rkaif
6 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
Ex...
abc_0702,
abc_0709,
abc_782
abc_1234 ...etc
need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
7 Replies
7. Shell Programming and Scripting
I need a unix command which will find all the files greater that a particular date in the file name.
say for example I have files like(filenaming cov : filename.YYDDMMSSSS.txt)
abc.201206015423.txt
abc.201207013456.txt
abc.201202011234.txt
abc.201201024321.txt
efg.201202011234.txt... (11 Replies)
Discussion started by: lijjumathew
11 Replies
8. Shell Programming and Scripting
I have a number of files in a directory that can be grouped with something like "ls | grep SH2". I would like to move each file in this list to another directory.
Thanks (4 Replies)
Discussion started by: kg6iia
4 Replies
9. UNIX for Dummies Questions & Answers
Greetings. I know enough Unix to be dangerous (!) and know that there is a clever way to do the following and it will save me about a day of agony (this time) and I will use it forever after! (many days of agony saved in the future)!
Basically
I need to find any image files (JPGs, PSDs etc)... (5 Replies)
Discussion started by: Clyde Lovett
5 Replies
10. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
LEARN ABOUT DEBIAN
anyevent::xmpp::parser
AnyEvent::XMPP::Parser(3pm) User Contributed Perl Documentation AnyEvent::XMPP::Parser(3pm)
NAME
AnyEvent::XMPP::Parser - Parser for XML streams (helper for AnyEvent::XMPP)
SYNOPSIS
use AnyEvent::XMPP::Parser;
...
DESCRIPTION
This is a XMPP XML parser helper class, which helps me to cope with the XMPP XML.
See also AnyEvent::XMPP::Writer for a discussion of the issues with XML in XMPP.
METHODS
new This creates a new AnyEvent::XMPP::Parser and calls "init".
set_stanza_cb ($cb)
Sets the 'XML stanza' callback.
$cb must be a code reference. The first argument to the callback will be this AnyEvent::XMPP::Parser instance and the second will be
the stanzas root AnyEvent::XMPP::Node as first argument.
If the second argument is undefined the end of the stream has been found.
set_error_cb ($cb)
This sets the error callback that will be called when the parser encounters an syntax error. The first argument is the exception and
the second is the data which caused the error.
set_stream_cb ($cb)
This method sets the stream tag callback. It is called when the <stream> tag from the server has been encountered. The first argument
to the callback is the AnyEvent::XMPP::Node of the opening stream tag.
init
This methods (re)initializes the parser.
cleanup
This methods removes all handlers. Use it to avoid circular references.
nseq ($namespace, $tagname, $cmptag)
This method checks whether the $cmptag matches the $tagname in the $namespace.
$cmptag needs to come from the XML::Parser::Expat as it has some magic attached that stores the namespace.
feed ($data)
This method feeds a chunk of unparsed data to the parser.
AUTHOR
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
COPYRIGHT & LICENSE
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-19 AnyEvent::XMPP::Parser(3pm)