I am using a DEC ALPHA running Digital UNIX (formly DEC OSF/1) and ksh. I have a directory with hundreds of files that only share the extension .rpt. I would like to search that directory based on serial number and operation number and only files that meet both requirements to be printed out. I... (6 Replies)
Please help. Here is my problem. I have 9000 lines in file a and 500,000 lines in file b. For each line in file a I need to search file b and remove that line. I am currently using the grep -v command and loading the output into a new file. However, because of the size of file b this takes an... (2 Replies)
This is the problem actually:
This regex:
egrep "low debug.*\".*\"" $dbDir/alarmNotification.log
is looking for data between the two quotation marks:
".*\"
When I hate data like this:
low debug 2009/3/9 8:30:20.47 ICSNotificationAlarm Prodics01ics0003 IC... (0 Replies)
I have a server and occasionally the file mysqld.log would show something like
/usr/libexec/mysqld: Disk is full writing './example_com_-_wordpress/wp_statpress.MYD' (Errcode: 122). Waiting for someone to free space... Retry in 60 secs
How do I write a simple shell script to check mysqld.log... (1 Reply)
I am trying to find a way to utilise the full potential of my cpu cores and memory on my windows machine.
Now, I am quite familiar with grep, however, running a Unix based OS is not an option right now.
Unfortunately, the 32 bit grep for windows that I am running, I cannot run multiple... (1 Reply)
Hi All,
I have a file in which i have to search for a pattern from the beginning of the file and if the pattern is found , then i have to perform a reverse search from that line to the beginning of the file to get the first occurrence of another pattern.
sample input file
hey
what are you... (8 Replies)
I use this command to find a search (Nr of active alarms are) and print one line before and 10 lines after the search keywords.
nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r;print;c=a}b{r=$0}' b=1 a=10 s="Nr of active alarms are:" *.log
However, I would like to know how to tell it to print... (3 Replies)
Hi Gurus,
i have 8 zipped files and each file is having more than 100,000 records or more.
issue :-
i want to search the missing text from each zipped files
i have stuck here, the below command works fine if i give the value 10 for the deptno.
if i have more than 1 records... (6 Replies)
Hi all,
I've the following hostnames & ip addresses saved in host_ip.txt
Based on this list, I need to create the following script.
where by HH is a hostname
and XXXX is an ip address
So the final output would be something like this.
Currently, I'm doing it manually, replace, copy... (3 Replies)
Hi,
I want a help in this forum for my below issue.
1. I have a file where I'm searching for a text .
2. When I get the line where the above string is present I want to cut
some texts from the line where the particular string was found.
These above two steps will repeat in the... (2 Replies)
Discussion started by: bhaski2012
2 Replies
LEARN ABOUT CENTOS
gd::barcode::qrcode
Barcode::QRcode(3) User Contributed Perl Documentation Barcode::QRcode(3)NAME
GD::Barcode::QRcode - Create QRcode barcode image with GD
SYNOPSIS
ex. CGI
use GD::Barcode::QRcode;
binmode(STDOUT);
print "Content-Type: image/png
";
print GD::Barcode::QRcode->new('1234567')->plot->png;
with UnitSize, ECC settings
my $oGdBar = GD::Barcode::QRcode->new('123456789',
{ Ecc => 'L', Version=>2, ModuleSize => 2}
);
DESCRIPTION
GD::Barcode::QRcode is a subclass of GD::Barcode and allows you to create QRcode barcode image with GD. This module based on "QRcode image
CGI version 0.50 (C)2000-2002,Y.Swetake".
new
$oGdBar = GD::Barcode::QRcode->new($sTxt,
{ Ecc => Ecc Mode,
Version => Version,
ModuleSize => Size of 1 modlue,
});
Constructor. Creates a GD::Barcode::QRcode object for $sTxt.
Parameters:
Ecc Ecc mode. Select 'M', 'L', 'H' or 'Q' (Default = 'M').
Version
Version ie. size of barcode image (Default = auto select).
ModuleSize
Size of modules(barcode unit) (Default = 1).
plot()
$oGd = $oGdBar->plot([Height => $iHeight, NoText => 0 | 1]);
creates GD object with barcode image for the $sTxt specified at new method. $iHeight is height of the image. If NoText is 1, the image has
no text image of $sTxt.
ex.
my $oGdB = GD::Barcode::QRcode->new('1234567');
my $oGD = $oGdB->plot();
# $sGD is a GD image with Height=>20 pixels, with no text.
barcode()
$sPtn = $oGdBar->barcode();
returns a barcode pattern in string with '1' and '0'. '1' means black, '0' means white.
ex.
my $oGdB = GD::Barcode::QRcode->new('1234567');
my $sPtn = $oGdB->barcode();
$errStr
$GD::Barcode::QRcode::errStr
has error message.
$text
$oGdBar->{$text}
has barcode text based on $sTxt specified in new method.
AUTHOR
Kawai Takanori GCD00051@nifty.ne.jp
COPYRIGHT
The GD::Barocde::QRcode module is Copyright (c) 2003 Kawai Takanori. Japan. All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
SEE ALSO
GD::Barcode
perl v5.16.3 2004-04-24 Barcode::QRcode(3)