well i have this file here:
<XML>
<pregate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<system_c>HPREGATE</system_c>
<trans_c>HSPG</trans_c>
<trans_dt>20060105161333</trans_dt>
<user_id_m></user_id_m>
<func_c>C</func_c>
</pregate>
</XML>
i want to... (2 Replies)
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Hello,
This is my first post on the forums. So I want to start by thanking anyone who is kind enough to read this post and offer advise. I hope to be an active contributor now that I've found these forums.
I have an issue that I figure would be a good first post..
I have 2 text files... (5 Replies)
How can i make a script to add text before the first word on a line in a textfile :
Example:
Old line:
is my place
New line:
this is my place
Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (3 Replies)
Folks,
how to read the second word of the first line from a text file. Text file does not have any delimiters in the line and has words at random locations. Basically the text file is a log and i want to capture a number that is in second position.
Appreciate your help
Venu (1 Reply)
Hi everyone.
I am new to shell scripting and have been looking at quite a few web pages to try and figure this out, but to no avail.
What I am trying to do is get a value from a text file that contains a paragraph of information.. Something similar too:
Welcome to random script
You are... (1 Reply)
Hi i want to extract the word present before .txt in the text file.
For example,
Sample_ab_a.txt ----------> i need 'a'
Sample_abc_b.txt -----------> i need 'b'
Can anyone help me in getting the word extracted (5 Replies)
Hello,
I have a mysql text file. I want add word to it. Thanks for help.
Sample sql file:
,'address','166 Warren Street, NY 12534'),(45215,26556,'phone','(518)811-4145'),(151426,15565,'listing_duration','address','122 Hom Street, NY... (6 Replies)
Hi,
I have a text file with one line having few words separated by space and I need to insert another word on "n"th column/field so that previous word should shift right (to n+1st column). how can I do that?
It seems we can do using awk but unable to figure out.
Please advise, thanks!
... (11 Replies)
Hi I have a file passwd_exmpl that contains:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync... (5 Replies)
Discussion started by: eladage
5 Replies
LEARN ABOUT DEBIAN
text::qrcode
Text::QRCode(3pm) User Contributed Perl Documentation Text::QRCode(3pm)NAME
Text::QRCode - Generate text base QR Code
SYNOPSIS
use Text::QRCode;
my $arrayref = Text::QRCode->new()->plot("Some text here.");
print join "
", map { join '', @$_ } @$arrayref;
# You will get following output.
******* * ** *******
* * * * * *
* *** * * *** *
* *** * ** * *** *
* *** * * * * *** *
* * **** * *
******* * * * *******
* **
** ** * *** * *
* ** *** * *
* **** * * **
* * * * * * ** ***
** * *** ** **
* ** * ** *
******* ***** ***
* * * ** * ****
* *** * * * * *
* *** * * ** * *
* *** * *** * ***
* * ** * * ***
******* * * ****
DESCRIPTION
This module allows you to generate QR Code using ' ' and '*'. This module use libqrencode '2.0.0' and above.
METHODS
new
$qrcode = Text::QRCode->new(%params);
The "new()" constructor method instantiates a new Text::QRCode object. "new()" accepts some parameters are the same as
"Imager::QRCode".
plot($text)
$arrayref = $qrcode->plot("blah blah");
Create a QR Code map. This method returns array reference ploted QR Code with the given text.
INSTANT METHODS
plot_qrcode($text, \%params)
Instant method. $text is input text. %params is same parameter as "new()".
SEE ALSO
"Imager::QRCode", "Term::QRCode", "HTML::QRCode", "http://www.qrcode.com/", "http://megaui.net/fukuchi/works/qrencode/index.en.html"
AUTHOR
Yoshiki Kurihara "<kurihara __at__ cpan.org>"
LICENCE
Copyright (c) 2007, Yoshiki KURIHARA "<kurihara __at__ cpan.org>".
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-11-15 Text::QRCode(3pm)