Sponsored Content
Top Forums Shell Programming and Scripting The efficiency between GREP and SED??? Post 302452883 by ever on Monday 13th of September 2010 09:51:46 AM
Old 09-13-2010
Question The efficiency between GREP and SED???

Hello Everyone!

I am a newbie. I'd like to get key lines from a big txt file by Reg Exp, The file is nearly 22MB.

GREP or SED?which may be the best choice,more efficient way?

or any other best practise?

Thank you in advance.

EverSmilie
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

efficiency..

how efficient is it, and how practical is it to call outside programs in a shell script (bash) for small tasks? for example, say i have a script that might preform many tasks, one of those tasks may require root access; rather than implementing inside the script a method to use su or sudo to... (11 Replies)
Discussion started by: norsk hedensk
11 Replies

2. Shell Programming and Scripting

Perl: code efficiency for gmtime

I have the following Perl snippet: # get datetime @dt = gmtime(); $strdate = 1900 + $dt . addleadingzero(++$dt) . addleadingzero($dt) . addleadingzero($dt) . addleadingzero($dt) . addleadingzero($dt); # write to file $outfile = $strdate . ".txt"; getstore($url, $outfile) or die "Error:... (3 Replies)
Discussion started by: figaro
3 Replies

3. Shell Programming and Scripting

Improve program efficiency (awk)

Hi !! I've finished an awk exercise. Here it is: #!/bin/bash function calcula { # Imprimimos el mayor tamaño de fichero ls -l $1 | awk ' BEGIN { max = $5; # Inicializamos la variable que nos guardará el máximo con el tamaño del primer archivo } { if ($5 > max){ #... (8 Replies)
Discussion started by: Phass
8 Replies

4. Shell Programming and Scripting

File or Folder Efficiency?

I've got this program set up so that it creates files whose unique names specify the jobs their contents describe. In order to retrieve the information inside those files, I have to do a "grep" and awk or sed to extract it. I've just assumed that making a directory with that unique name that... (1 Reply)
Discussion started by: gmark99
1 Replies

5. UNIX for Advanced & Expert Users

About efficiency of parallel memory allocation

Hello, there. I'm a new beginner to Linux kernel and curious about its memory management. When multiple applications apply for memory space at the same time, how Linux kernel solve the resource contending problem for high performance? I have known that there is a buddy system for allocating and... (4 Replies)
Discussion started by: blackwall
4 Replies
Mail::SPF::Mod::Exp(3)					User Contributed Perl Documentation				    Mail::SPF::Mod::Exp(3)

NAME
Mail::SPF::Mod::Exp - SPF record "exp" modifier class DESCRIPTION
An object of class Mail::SPF::Mod::Exp represents an SPF record modifier of type "exp". Constructors The following constructors are provided: new(%options): returns Mail::SPF::Mod::Exp Creates a new SPF record "exp" modifier object. %options is a list of key/value pairs representing any of the following options: domain_spec See "new" in Mail::SPF::Mod. new_from_string($text, %options): returns Mail::SPF::Mod::Exp; throws Mail::SPF::ENothingToParse, Mail::SPF::EInvalidMod Creates a new SPF record "exp" modifier object by parsing the string and any options given. Class methods The following class methods are provided: name: returns string Returns 'exp'. name_pattern: returns Regexp Returns a regular expression that matches a modifier name of 'exp'. precedence: returns real Returns a precedence value of 0.2. See "precedence" in Mail::SPF::Mod. Instance methods The following instance methods are provided: params See "params" in Mail::SPF::Mod. domain_spec: returns Mail::SPF::MacroString Returns the "domain-spec" parameter of the modifier. process($server, $request, $result) If the given SPF result is a "fail" result, retrieves the authority domain's explanation string from the modifier's target domain and attaches it to the SPF result. If an error occurs during the retrieval of the explanation string, does nothing, as if the modifier was not present. See RFC 4408, 6.2, for details. See Mail::SPF::Mod for other supported instance methods. SEE ALSO
Mail::SPF, Mail::SPF::Mod, Mail::SPF::Term, Mail::SPF::Record <http://www.ietf.org/rfc/rfc4408.txt> For availability, support, and license information, see the README file included with Mail::SPF. AUTHORS
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org> perl v5.12.1 2010-07-05 Mail::SPF::Mod::Exp(3)
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy