Sponsored Content
Top Forums Shell Programming and Scripting Filter the file list greater then the size specified by user Post 302282166 by zaxxon on Friday 30th of January 2009 09:08:00 AM
Old 01-30-2009
Good thing, vivek Smilie

No guys, it is not comparing only the 1st digit. I don't know how you come to that impression. Check vivek's thread, I've updatet it. I am closing this thread since it is the same topic like vivek's so continue in his thread for the ease of following threads, please.

Closed Smilie

https://www.unix.com/shell-programmin...sting-awk.html
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File size greater than 0

ok I want to know how to touch a file and find out that it is greater than 0 then if it is not I want to fail the job other wise I want to success amnd go on. Can anyone help. Thanks Shannon Kammer (1 Reply)
Discussion started by: skammer1234
1 Replies

2. Shell Programming and Scripting

Can I find wether a particular file exist and size greater than zero...help please

Can I find wether a particular file exist and size greater than zero in one line command. similar to this if && something in one if test .... e.g. if 1.) is it possible ? ... if yes how 2.) what would be the return type in case there is success or failure. I mean if both are... (4 Replies)
Discussion started by: guhas
4 Replies

3. UNIX for Dummies Questions & Answers

List File size

Hello all, I have a directory filling up. I need to determine the size of the files in the directory. How do I do that, what command should I run when I am in the directory? Next question, can I expand the partition size? (10 Replies)
Discussion started by: komputersman
10 Replies

4. Shell Programming and Scripting

shell script to check file size greater than 50M

Hi All, OS:AIX 64 bits using korn shell. Requirement: shell script to check file size greater than 50M and send mail alert. Thanks for your time! Regards, (3 Replies)
Discussion started by: a1_win
3 Replies

5. Shell Programming and Scripting

Unix file empty.. but size is greater than zero??/

Hi, I have a file by redirecting some contents in unix shell. Even when there is no content that is being redirected, the file size still shows greater than zero. but even if there is no matching pattern the file APPRES has size greater than 0bytes. awk -f AA.awk $logfile>APPRES... (3 Replies)
Discussion started by: justchill
3 Replies

6. Shell Programming and Scripting

Shell script to read lines in a text file and filter user data

hi all, I have this file with some user data. example: $cat myfile.txt FName|LName|Gender|Company|Branch|Bday|Salary|Age aaaa|bbbb|male|cccc|dddd|19900814|15000|20| eeee|asdg|male|gggg|ksgu|19911216||| aara|bdbm|male|kkkk|acke|19931018||23| asad|kfjg|male|kkkc|gkgg|19921213|14000|24|... (4 Replies)
Discussion started by: srimal
4 Replies

7. Shell Programming and Scripting

filter file size and file name

I want to filter file information so that i have a column containing file size adjacent to a column containing that files name. I am using: find . -type f -exec ls -l {} \; | awk '$5 $9 {print $5 $9}' and the problem lies with $9 because it prints the file path, /. . ./filename. I want the... (3 Replies)
Discussion started by: robin_simple
3 Replies

8. UNIX for Dummies Questions & Answers

look for file size greater than "0" of specific pattern and move those to another directory

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

9. HP-UX

List of file name with size

how to get the file name list with size descriptive in hp-ux Required output: permission link user group size(with MB,KB,GB etc) date time name (7 Replies)
Discussion started by: Jewel
7 Replies

10. UNIX for Beginners Questions & Answers

Find command size greater than or equalto

How do I find the files greater than or equal to a given size using find command. find ./ -size +0k --> Lists files greater than 0K find ./ -size 0k --> Lists the file size equal to 0K. I have other conditions to check, hence using find command. Thanks in advance. (4 Replies)
Discussion started by: deepakwins
4 Replies
Courier::Filter::Module::SendCopy(3pm)			User Contributed Perl Documentation		    Courier::Filter::Module::SendCopy(3pm)

NAME
Courier::Filter::Module::SendCopy - Pseudo-filter for the Courier::Filter framework that sends a copy of certain messages to additional recipients SYNOPSIS
use Courier::Filter::Module::SendCopy; my $module = Courier::Filter::Module::SendCopy->new( # One or more of the following criteria: match_sender => qr/@office.example.net$/, match_recipients => qr/@customer.example.com$/, match_authenticated_user => 'my-smtp-user-name', # One or several copy recipients: copy_recipients => [ 'el-cheffe@office.example.net', 'archives@customer.example.com', ], # Send a copy to the sender? (always/never/indifferent) copy_to_sender => TRUE, # TRUE/FALSE/undef ) my $filter = Courier::Filter->new( ... modules => [ $module ], ... ); DESCRIPTION
This class is a filter module for use with Courier::Filter. If a message matches a given set of criteria, a blind carbon copy of the message is sent to a configured list of additional recipients by adding them to the message's control file. This module never matches. Constructor The following constructor is provided: new(%options): returns Courier::Filter::Module::SendCopy Creates a new SendCopy filter module. %options is a list of key/value pairs representing any of the following options: match_sender A pattern matched against the message's envelope sender. If not specified, any sender qualifies. match_recipients A pattern matched against all of the message's envelope recipients. Any of the envelope recipients may match. If no pattern is specified, any recipient qualifies. match_authenticated_user A pattern matched against the user name that was used for authentication during submission of the message. If no pattern is specified, any user or none at all qualifies. If a pattern is specified and no authentication took place during submission of the message, the message does not qualify. copy_recipients One or several addresses a copy of every matching message is sent to in addition to the original recipients. A single address can be specified as a simple scalar; a list of several addresses must be specified as an array reference. Any address matching exactly one of the original recipient addresses is skipped. copy_to_sender Specifies whether a copy of the message should be sent to its envelope sender. If false, no message is ever sent back in copy to its sender, even if the sender is included in the "copy_recipients" list. If true, the sender is always sent a copy of the message. If undef (the default), the sender must be included in the "copy_recipients" list to receive a copy of the message. Patterns may either be simple strings (for exact, case-sensitive matches) or regular expression objects created by the "qr//" operator (for partial matches). All options of the Courier::Filter::Module constructor are also supported. Please see "new" in Courier::Filter::Module for their descriptions. Instance methods See "Instance methods" in Courier::Filter::Module for a description of the provided instance methods. SEE ALSO
Courier::Filter::Module, Courier::Filter::Overview. For AVAILABILITY, SUPPORT and LICENSE information, see Courier::Filter::Overview. AUTHOR
Michael Buschbeck <michael@buschbeck.net> perl v5.14.2 2011-12-27 Courier::Filter::Module::SendCopy(3pm)
All times are GMT -4. The time now is 11:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy