Hi, I am reading a string from a file.
now i want to count the number of chareacter in the string and if it is more then 8 capture only last 8 characters.
ex. string=mypassword
<<do something>>
output should be:
string=password
Thanks for you help. (13 Replies)
Hello
can someone please advise.
I need to send records in a file that are over 10,000 characters long to a seperate file.
Any ideas?
Thanks (2 Replies)
Hello,
I have a text file with n lines in the following format (9 column fields):
Example:
contig00012 149606 G C 49 68 60 18 c$cccccacccccccccc^c
I need to count the number of lower-case and upper-case occurences in column 9, respectively, of the... (3 Replies)
Please check the attachment for the example.
Purpose: count how many "|" character in one line and also display the line number.
expect result:
Line 1 : there are 473 "|" characters
Line 2 : there are 473 "|" characters
I have tried to use awk to count it, it's ok when the statistic... (8 Replies)
Hello All,
I got a requirement when I was working with a file. Say the file has unloads of data from a table in the form
1|121|asda|434|thesi|2012|05|24|
1|343|unit|09|best|2012|11|5|
I was put into a scenario where I need the field count in all the lines in that file. It was simply... (6 Replies)
#!/bin/ksh
read name
read mobile
echo $name | wc -m
Nunberchar=`echo $name |wc -m`
echo $Nunberchar
I write something above, however the char count is wrong, it always count the $ , how to avoid it ? (5 Replies)
Hello,
I do have folders containing having funny strings in their names and one space.
First, I do remove the funny strings and replace the space by an underscore.
find . -name '* *' | while read file;
do
target=`echo "$file" | sed 's/... (2 Replies)
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT CENTOS
template::plugin::dumper
Template::Plugin::Dumper(3) User Contributed Perl Documentation Template::Plugin::Dumper(3)NAME
Template::Plugin::Dumper - Plugin interface to Data::Dumper
SYNOPSIS
[% USE Dumper %]
[% Dumper.dump(variable) %]
[% Dumper.dump_html(variable) %]
DESCRIPTION
This is a very simple Template Toolkit Plugin Interface to the Data::Dumper module. A "Dumper" object will be instantiated via the
following directive:
[% USE Dumper %]
As a standard plugin, you can also specify its name in lower case:
[% USE dumper %]
The "Data::Dumper" "Pad", "Indent" and "Varname" options are supported as constructor arguments to affect the output generated. See
Data::Dumper for further details.
[% USE dumper(Indent=0, Pad="<br>") %]
These options can also be specified in lower case.
[% USE dumper(indent=0, pad="<br>") %]
METHODS
There are two methods supported by the "Dumper" object. Each will output into the template the contents of the variables passed to the
object method.
dump()
Generates a raw text dump of the data structure(s) passed
[% USE Dumper %]
[% Dumper.dump(myvar) %]
[% Dumper.dump(myvar, yourvar) %]
dump_html()
Generates a dump of the data structures, as per dump(), but with the characters <, > and & converted to their equivalent HTML entities and
newlines converted to <br>.
[% USE Dumper %]
[% Dumper.dump_html(myvar) %]
AUTHOR
Simon Matthews <sam@tt2.org>
COPYRIGHT
Copyright (C) 2000 Simon Matthews. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Template::Plugin, Data::Dumper
perl v5.16.3 2011-12-20 Template::Plugin::Dumper(3)