I have a line in multiple scripts:select into table /dir1/dir2/file.dat
dir1 and dir2 are the same but file.dat is different from script to script.
I need to include /dir1/dir2/file.dat into double quotes in each file of my directory:select into table "/dir1/dir2/file.dat" (13 Replies)
Hi,
my requirement is to find the count of commas in a string excluding the ones in double quotes.
For example:
If the input string is
abc,xyz.com,lmhgdf,"abc, 401 street","tty,stt",45,23,45
The output should be 7 (7 Replies)
I have a file with a lot of lines (a lot!) that contain 10 digits between double quotes. ie "1726937489". The digits are random throughout, but always contain ten digits.
I can not for the life of me, (via scouring the internet and grep how-to manuals) figure out how to find this when I search.... (3 Replies)
Need a little help.
I have just a simple string with a lot double quotes in it. I need to be able to parse through this string, and know how many double quotes I have, and where I am, so I can key off every 9th double quote. For example (coding is not complete):
#!/bin/bash
count=0... (3 Replies)
In a bash script I have:
LSCMD="find /project/media/ -mindepth 2 -maxdepth 2 -name \"files*pkg\""
ALL_PACKAGES=$( $LSCMD | sort 2>/dev/null)
But I get nothing returned. It's just all blank. If I run the find command in a terminal, I get dozens of hits.
I figure it's the way how I'm... (3 Replies)
I have thousands of files in a directory. I need to find/list all files that have the below matching string -
RETURNCODE: "1017"
Thank you! (5 Replies)
Hi Froum.
I have tried in vain to find a solution for this problem - I'm trying to replace any double quotes within a quoted string with a single quote, leaving everything else as is.
I have the following data:
Before:
... (32 Replies)
My input is this:
Inputfile = file.txt
needs to change to,
Inputfile = file.txt"
I have tried using:
Inputfile = `echo ${Inputfile}"'
doesn't work for me.
Similarly how do I change it to all double quotes:
Inputfile = "file.txt" (4 Replies)
Hi All,
I have been trying to replace a string using the sed command
string value contain blackslash and double quotes. I am not a expert writer of unix script but do try not to ask question. I have almost given up. Hope you all can give me some suggestion
I want to replace a place string... (6 Replies)
Hi All,
I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes.
Sample Data :
"221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Discussion started by: mlavanya
6 Replies
LEARN ABOUT MOJAVE
dumpvalue
Dumpvalue(3pm) Perl Programmers Reference Guide Dumpvalue(3pm)NAME
Dumpvalue - provides screen dump of Perl data.
SYNOPSIS
use Dumpvalue;
my $dumper = Dumpvalue->new;
$dumper->set(globPrint => 1);
$dumper->dumpValue(*::);
$dumper->dumpvars('main');
my $dump = $dumper->stringify($some_value);
DESCRIPTION
Creation
A new dumper is created by a call
$d = Dumpvalue->new(option1 => value1, option2 => value2)
Recognized options:
"arrayDepth", "hashDepth"
Print only first N elements of arrays and hashes. If false, prints all the elements.
"compactDump", "veryCompact"
Change style of array and hash dump. If true, short array may be printed on one line.
"globPrint"
Whether to print contents of globs.
"dumpDBFiles"
Dump arrays holding contents of debugged files.
"dumpPackages"
Dump symbol tables of packages.
"dumpReused"
Dump contents of "reused" addresses.
"tick", "quoteHighBit", "printUndef"
Change style of string dump. Default value of "tick" is "auto", one can enable either double-quotish dump, or single-quotish by
setting it to """ or "'". By default, characters with high bit set are printed as is. If "quoteHighBit" is set, they will be quoted.
"usageOnly"
rudimentary per-package memory usage dump. If set, "dumpvars" calculates total size of strings in variables in the package.
unctrl
Changes the style of printout of strings. Possible values are "unctrl" and "quote".
subdump
Whether to try to find the subroutine name given the reference.
bareStringify
Whether to write the non-overloaded form of the stringify-overloaded objects.
quoteHighBit
Whether to print chars with high bit set in binary or "as is".
stopDbSignal
Whether to abort printing if debugger signal flag is raised.
Later in the life of the object the methods may be queries with get() method and set() method (which accept multiple arguments).
Methods
dumpValue
$dumper->dumpValue($value);
$dumper->dumpValue([$value1, $value2]);
Prints a dump to the currently selected filehandle.
dumpValues
$dumper->dumpValues($value1, $value2);
Same as "$dumper->dumpValue([$value1, $value2]);".
stringify
my $dump = $dumper->stringify($value [,$noticks] );
Returns the dump of a single scalar without printing. If the second argument is true, the return value does not contain enclosing
ticks. Does not handle data structures.
dumpvars
$dumper->dumpvars('my_package');
$dumper->dumpvars('my_package', 'foo', '~bar$', '!......');
The optional arguments are considered as literal strings unless they start with "~" or "!", in which case they are interpreted as
regular expressions (possibly negated).
The second example prints entries with names "foo", and also entries with names which ends on "bar", or are shorter than 5 chars.
set_quote
$d->set_quote('"');
Sets "tick" and "unctrl" options to suitable values for printout with the given quote char. Possible values are "auto", "'" and """.
set_unctrl
$d->set_unctrl('unctrl');
Sets "unctrl" option with checking for an invalid argument. Possible values are "unctrl" and "quote".
compactDump
$d->compactDump(1);
Sets "compactDump" option. If the value is 1, sets to a reasonable big number.
veryCompact
$d->veryCompact(1);
Sets "compactDump" and "veryCompact" options simultaneously.
set
$d->set(option1 => value1, option2 => value2);
get
@values = $d->get('option1', 'option2');
perl v5.18.2 2013-11-04 Dumpvalue(3pm)