09-23-2011
Thanks, but the 00200100293^ and 00A0ABC0293^ are not the only values are in the file. it contains many different string but the length is always same with 11 digits followed by "^"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to replace the line containing "STAGE_DB" with the line
"STAGE_DB $DB # database that contains the table being loaded ($workingDB)"
Here $DB is passed during the runtime.
How can I do this?
Thanks,
Kousikan (2 Replies)
Discussion started by: kousikan
2 Replies
2. Shell Programming and Scripting
i need to use sed to remove an entire line containing a pattern stored in a variable say $var1
this var1 will be a URL and will therefore contain slashes
any help would be greatly appreciated (1 Reply)
Discussion started by: Fire_Storm
1 Replies
3. Shell Programming and Scripting
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
abc123defhij-E-1234jslo
456ujs-W-abXjklp
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Discussion started by: TestTomas
5 Replies
4. Shell Programming and Scripting
Hello friends,
Only very recently i started learning sed command...an i found that sed is faster in finding the patterns than some of my scripts that uses grep to check the patten inside a file using line by line search method which is time consuming.
The below script... (4 Replies)
Discussion started by: frozensmilz
4 Replies
5. Shell Programming and Scripting
I need to write a shell script for below scenario
My input file has data in format:
qwerty0101TWE 12345 01022005 01022005 datainala alanfernanded 26
qwerty0101mXZ 12349 01022005 06022008 datainalb johngalilo 28
qwerty0101TWE 12342 01022005 07022009 datainalc hitalbert 43
qwerty0101CFG 12345... (19 Replies)
Discussion started by: jimmy12
19 Replies
6. Shell Programming and Scripting
Hi How Are you?
I am doing fine!
I need to go now?
I will see you tomorrow!
Basically I need to replace the entire line containing "doing" with a blank line:
I need to the following output:
Hi How Are you?
I need to go now?
I will see you tomorrow!
Thanks in advance.... (1 Reply)
Discussion started by: sags007_99
1 Replies
7. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
8. Shell Programming and Scripting
Hi there, I am pretty new to those things, so I couldn't figure out how to solve this, and if it is actually that easy. just found that awk could help:(.
so i have a textfile with strings and numbers (originally copy pasted from word, therefore some empty cells) in the following structure:
SC... (9 Replies)
Discussion started by: luja
9 Replies
9. Shell Programming and Scripting
Hi.
In need to delete line before and after pattern in file. I came to following commands.
Delete line before
sed -ni '/pattern/{x;d;};1h;1!{x;p;};${x;p;}' /etc/testfile
Delete line after
sed -i '/pattern/{N;s/\n.*//;}' /etc/testfile
Is it possible to merge it in single command? (3 Replies)
Discussion started by: urello
3 Replies
10. Shell Programming and Scripting
'Hi
I'm using the following code to extract the lines(and redirect them to a txt file) after the pattern match. But the output is inclusive of the line with pattern match.
Which option is to be used to exclude the line containing the pattern?
sed -n '/Conn.*User/,$p' > consumers.txt (11 Replies)
Discussion started by: essem
11 Replies
LEARN ABOUT DEBIAN
authen::passphrase::eggdropblowfish
Authen::Passphrase::EggdropBlowfish(3pm) User Contributed Perl Documentation Authen::Passphrase::EggdropBlowfish(3pm)
NAME
Authen::Passphrase::EggdropBlowfish - passphrases using Eggdrop's blowfish.mod
SYNOPSIS
use Authen::Passphrase::EggdropBlowfish;
$ppr = Authen::Passphrase::EggdropBlowfish->new(
hash_base64 => "9tpsG/61YqX/");
$ppr = Authen::Passphrase::EggdropBlowfish->new(
passphrase => "passphrase");
$hash = $ppr->hash;
$hash_base64 = $ppr->hash_base64;
if($ppr->match($passphrase)) { ...
DESCRIPTION
An object of this class encapsulates a passphrase hashed using the Blowfish-based algorithm used in Eggdrop's blowfish.mod. This is a
subclass of Authen::Passphrase, and this document assumes that the reader is familiar with the documentation for that class.
This hash scheme uses no salt, and does not accept a zero-length passphrase. It uses the passphrase as a Blowfish key to encrypt a
standard plaintext block. The hash is the ciphertext block. The standard Blowfish key schedule only accepts keys from 8 to 56 bytes long;
this algorithm relaxes that requirement and accepts any non-zero length. Up to 72 bytes of passphrase/key are significant; any more are
ignored.
In Eggdrop the hash is represented as a "+" followed by twelve base 64 digits. The first six digits encode the second half of the hash,
and the last six encode the first half. Within each half the bytes are encoded in reverse order. The base 64 digits are ".", "/", "0" to
"9", "a" to "z", "A" to "Z" (in that order).
Warning: The hash is small by modern standards, and the lack of salt is a weakness in this scheme. For a scheme that makes better use of
Blowfish see Authen::Passphrase::BlowfishCrypt.
CONSTRUCTOR
Authen::Passphrase::EggdropBlowfish->new(ATTR => VALUE, ...)
Generates a new passphrase recogniser object using the Eggdrop blowfish.mod algorithm. The following attributes may be given:
hash
The hash, as a string of eight bytes.
hash_base64
The hash, as a string of twelve base 64 digits.
passphrase
A passphrase that will be accepted.
Either the hash or the passphrase must be given.
METHODS
$ppr->hash
Returns the hash value, as a string of eight bytes.
$ppr->hash_base64
Returns the hash value, as a string of twelve base 64 digits.
$ppr->match(PASSPHRASE)
This method is part of the standard Authen::Passphrase interface.
SEE ALSO
Authen::Passphrase, Crypt::Eksblowfish::Uklblowfish
AUTHOR
Andrew Main (Zefram) <zefram@fysh.org>
COPYRIGHT
Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram) <zefram@fysh.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-07 Authen::Passphrase::EggdropBlowfish(3pm)