Sponsored Content
Top Forums Shell Programming and Scripting Send files as an attachment without uuencode Post 302534144 by sgoud on Monday 27th of June 2011 05:07:18 AM
Old 06-27-2011
Quote:
Originally Posted by sgoud
i have file whic contain data like
01,011600033,011600033,110516,0801,3,90,,2/
02,011600033,011103093,1,110317,0801,,2/
03,000000000000000000,,056,+00000000000,,,703,+00000000000,
i want igore 03 record which contain 000000000000000 very urgent please give reply whic how to write a script just ignore the 0000000000000 only diplay out put like
01,011600033,011600033,110516,0801,3,90,,2/
02,011600033,011103093,1,110317,0801,,2/
03,,,,56,,,,,,703,,
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to send the multi files as a attachment

Hi all, Could you please guide me to write the shell script, to send a multi file as a attachement . Thanks Murugesh (1 Reply)
Discussion started by: Murugesh
1 Replies

2. UNIX for Advanced & Expert Users

send attachment without uuencode

Hello - In unix, can you tell me IF there is a way to send attachments via email without using uuencode command? Thank you (3 Replies)
Discussion started by: panchpan
3 Replies

3. UNIX for Dummies Questions & Answers

Binary txt file received when i use uuencode to send txt file as attachment

Hi, I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes.. i wanna attach a text file and send to a mail id..used the following code : uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com it works... (2 Replies)
Discussion started by: ash22
2 Replies

4. UNIX for Dummies Questions & Answers

uuencode without attachment

Hi All, I'm using uuencode to send out mail from unix to lotus notes,but i dont have any attachment to send out, I'm getting this message in the body of the mail "Usage: uuencode remotedest" however if i dont use uuencode I'm not able to send out mail Please help Thanks (1 Reply)
Discussion started by: gwrm
1 Replies

5. AIX

Send mail with attachment having csv files

Hi, Could anyone please help me to send multiple files of .csv format in one mail. Thanks Aj (2 Replies)
Discussion started by: atinjain05
2 Replies

6. Shell Programming and Scripting

How to send attachment without using uuencode

H All I want to send attachment in mail but I dont have uuencode installed in AIX server, there is any alternative way to send attachment in mail. (2 Replies)
Discussion started by: ns64110
2 Replies

7. Shell Programming and Scripting

How to send attachment using "sendmail" command or without uuencode command

Hi Guys, I dont have uuencode, mutt, base64 command available on my aix machine there is any alternative way to send file as attachement in mail. (3 Replies)
Discussion started by: ns64110
3 Replies

8. AIX

How to send attachment using "sendmail" command or without uuencode command

Hi Guys, I dont have uuencode, mutt, base64 command available on my aix machine there is any alternative way to send file as attachement in mail. (1 Reply)
Discussion started by: ns64110
1 Replies

9. AIX

Need to send attachment in Mail without using uuencode via script in AIX6.1

Dear All, Would some one help me with this to send a file as attachment in a mail using a script without uuencode... I am working on AIX 6.1, the thing is I dont have uuencode available... Is there any other alternate possible way to send file attachment with the mail without using uuencode... (11 Replies)
Discussion started by: msmadhan11
11 Replies

10. Shell Programming and Scripting

Need to send attachment without using uuencode and mutt

Hi, In my Linux am unable to send attachment to mail . Since pkgs for mutt and uuencode is not possible to install any other options for sending attachment will be useful. Tried the below options but its not working. mail -s "testmail" -a <filename> abc@mail.com cat <filename>|mail -s... (4 Replies)
Discussion started by: rogerben
4 Replies
File::Read(3pm) 					User Contributed Perl Documentation					   File::Read(3pm)

NAME
File::Read - Unique interface for reading one or more files VERSION
Version 0.0801 SYNOPSIS
use File::Read; # read a file $file = read_file($path); # read several files @files = read_files(@paths); # aggregate several files $file = read_files(@paths); # read a file as root, skip comments and blank lines $file = read_file({ as_root => 1, skip_comments => 1, skip_blanks => 1 }, $path); DESCRIPTION
This module mainly proposes functions for reading one or more files, with different options. See below for more details and examples. Rationale This module was created to address a quite specific need: reading many files, some as a normal user and others as root, and eventually do a little more processing, all while being at the same time compatible with Perl 5.004. "File::Slurp" addresses the first point, but not the others, hence the creation of "File::Read". If you don't need reading files as root or the post-processing features, then it's faster to directly use "File::Slurp". EXPORT
By default, this module exports all the functions documented afterhand. It also recognizes import options. For example use File::Read 'err_mode=quiet'; set "read_file()"'s "err_mode" option default value to "quiet". FUNCTIONS
read_file() Read the files given in argument and return their content, as as list, one element per file, when called in list context, or as one big chunk of text when called in scalar context. Options can be set using a hashref as first parameter. Options o "aggregate" controls how the function returns the content of the files that were successfully read. By default, When set to true (default), the function returns the content as a scalar; when set to false, the content is returned as a list. o "as_root" tells the function to read the given file(s) as root using the command indicated by the "cmd" option. o "cmd" sets the shell command used for reading files as root. Default is "sudo cat". Therefore you need sudo(8) and cat(1) on your system, and sudoers(5) must be set so the user can execute cat(1). o "err_mode" controls how the function behaves when an error occurs. Available values are "croak", "carp" and "quiet". Default value is "croak". o "skip_comments" tells the functions to remove all comment lines from the read files. o "skip_blanks" tells the functions to remove all blank lines from the read files. o "to_ascii" tells the functions to convert the text to US-ASCII using "Text::Unidecode". If this module is not available, non-ASCII data are deleted. Examples Just read a file: my $file = read_file($path); Read a file, returning it as list: my @file = read_file({ aggregate => 0 }, $path); Read a file, skipping comments: my $file = read_file({ skip_comments => 1 }, $path); Read several files, skipping blank lines and comments: my @files = read_file({ skip_comments => 1, skip_blanks => 1 }, @paths); read_files() "read_files()" is just an alias for "read_file()" so that it look more sane when reading several files. DIAGNOSTICS
"Bad value '%s' for option '%s'" (E) You gave a bad value for the indicated option. Please check the documentation for the valid values. "This function needs at least one path" (E) You called a function without giving it argument. SEE ALSO
File::Slurp IO::All AUTHOR
Sebastien Aperghis-Tramoni, "<sebastien at aperghis.net>" BUGS
Please report any bugs or feature requests to "bug-file-read at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Read>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc File::Read You can also look for information at: o AnnoCPAN: Annotated CPAN documentation - <http://annocpan.org/dist/File-Read> o CPAN Ratings - <http://cpanratings.perl.org/d/File-Read> o RT: CPAN's request tracker - <http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-Read> o Search CPAN - <http://search.cpan.org/dist/File-Read> COPYRIGHT &; LICENSE Copyright (C) 2006, 2007 Sebastien Aperghis-Tramoni, 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.10.0 2007-10-18 File::Read(3pm)
All times are GMT -4. The time now is 10:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy