hey all,
i made a simple .sh like this:
echo "<style media="screen" type="text/css">@import url("main.css");</style>"
but the output is:
<style media=screen type=text/css>@import url(main.css);</style>
i want to keep double-quotes, can anyone help me?
thanks (3 Replies)
Hi Experts,
I have a file with some of records contain double quotes ("). I need to write these records in separate file and have to delete the same records from the original file.
For Example:
Orginal File :
100000,abcd,CRED,MO
100001,"efgh",CRED
100002,ijkl,CRED,TX... (3 Replies)
Hi,
I've been trying to write a regex to use in egrep (in a shell script) that'll fetch the names of all the files that match a particular pattern. I expect to match the following line in a file:
Name = "abc"
The regex I'm using to match the same is:
egrep -l '(^) *= *" ** *"$' /PATH_TO_SEARCH... (6 Replies)
I struggle to understand why its used slash / instead of doublequotes " in sub function of awk.
This is taken from the manual of awksub(/USA/, "United States", "the USA and Canada")
But this work alsosub("USA", "United States", "the USA and Canada")
Is there any reason of why to select one... (2 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)
Hi All ,
We have source data file as csv file and since data could contain commas ,each attribute is quoted into double quotes.However problem is that some of the attributa data also contain double quotes which is converted to double double quote while creating csv file
XLs data :
... (2 Replies)
From:
1,2,3,4,5,This is a test
6,7,8,9,0,"This, is a test"
1,9,2,8,3,"This is a ""test"""
4,7,3,1,8,""""
To:
1,2,3,4,5,This is a test
6,7,8,9,0,"This; is a test"
1,9,2,8,3,"This is a ''test''"
4,7,3,1,8,"''"Is there an easy syntax I'm overlooking? There will always be an odd number... (5 Replies)
Hi All,
I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file.
comm -3 < sort file_old < sort file_new > new_file
I am getting the below error:
-ksh: sort: cannot open
But if I do... (7 Replies)
Discussion started by: njny
7 Replies
LEARN ABOUT MOJAVE
ppi::token::quote::double5.18
PPI::Token::Quote::Double(3) User Contributed Perl Documentation PPI::Token::Quote::Double(3)NAME
PPI::Token::Quote::Double - A standard "double quote" token
INHERITANCE
PPI::Token::Quote::Double
isa PPI::Token::Quote
isa PPI::Token
isa PPI::Element
DESCRIPTION
A "PPI::Token::Quote::Double" object represents a double-quoted interpolating string.
The string is treated as a single entity, PPI will not try to understand what is in the string during the parsing process.
METHODS
There are several methods available for "PPI::Token::Quote::Double", beyond those provided by the parent PPI::Token::Quote, PPI::Token and
PPI::Element classes.
Got any ideas for methods? Submit a report to rt.cpan.org!
interpolations
The interpolations method checks to see if the double quote actually contains any interpolated variables.
Returns true if the string contains interpolations, or false if not.
simplify
For various reasons, some people find themselves compelled to have their code in the simplest form possible.
The "simply" method will turn a simple double-quoted string into the equivalent single-quoted string.
If the double can be simplified, it will be modified in place and returned as a convenience, or returns false if the string cannot be
simplified.
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2001 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.18.2 2011-02-25 PPI::Token::Quote::Double(3)