I am doing something that I don't know if it is possible...
I have a file with a line looks like this:
<%s \n%s / %s \n%s \n>
and I am trying to replace this line with
<%s \n%s \n%s / %s \n%s \n>
in Shell script with sed command...
Is it even possible to decode the character '%' as string?
I have a script that is reading an existing report, pulling out the customer code, then tacking on the customer name from another file and replacing the existing customer code with the new field. This was written for me by someone else. I'm not real familiar with sed.
The data is getting into... (3 Replies)
I have a script that produces an output containing '/.ssh'.
I am trying to find a way of parsing only this data from a single line, without removing any other special characters contained within the output as a result of the parse.
Any help would be appreciated (6 Replies)
I need to do the following:
text in the format of: ADDRESS=abcd123:1111
- abcd123:1111 is different on every system.
replace with: ADDRESS=localhost:2222
sed 's/ADDRESS=<What do I use here?>/ADDRESS=localhost:2222/g'
Everything I've tried ends up with:
... (3 Replies)
Hi ,
I have input file like below
Hi this is "vinoth".
Hi happy to work with 'unix'
USA(united states of America)
My script variables are below :
Dquote=Ộ
Squote=&#$567
Obrac=&^986
Cbrac=&^745
I want to read the variables in my SED command to replace the double quote,single... (9 Replies)
How can I replace the follong text including to number 7000?
cat tmp0.txt
Winston (UK) Wong
I would the 7000 to replace Winston (UK) Wong.
I fail with method below:
sed ' s /Winston\(UK\)Wong/7000 tmp0.txt' (1 Reply)
Hi All,
I have a text file that contains
I1SP2 *=*=Y=M=D001D
My requirement is to replace all occurrence of =* to =Z
expected o/p is I1SP2 *=Z=Y=M=D001D
I have tried with
sed 's/=*/=Z/g' file
sed 's!\=*!\=Z/g' file
sed 's!\=*!\=Z!g' file
sed 's!\=\*!\=Z!g' file
but its not... (3 Replies)
Hi all
I got test.test.test and need
test.test\.test *
I need the backslash before the last dot in the line
I tried
echo test.test.test | sed 's/\./\\./g'
but it gives me
test\.test\.test
Thanks (7 Replies)
Dear all,
I was wondering If you could help me out.
I Am using a batch script to midfy some text files.
Input:
912856
912857
912904Amongst others I use this line:
REM I want to replace all lines that start with a 6-digit Number with a ftp command "get" followed by a path and the 6-digit... (9 Replies)
Discussion started by: SIEMI
9 Replies
LEARN ABOUT DEBIAN
latex::decode
LaTeX::Decode(3pm) User Contributed Perl Documentation LaTeX::Decode(3pm)NAME
LaTeX::Decode - Decode from LaTeX to Unicode
VERSION
Version 0.03
SYNOPSIS
use LaTeX::Decode;
my $latex_string = 'Mu\d{h}ammad ibn M\=us=a al-Khw\=arizm\={\i}';
my $new_string = latex_decode($latex_string); # => 'MuXammad ibn MXsX al-KhwXrizmX'
DESCRIPTION EXPORT FUNCTIONS
latex_decode($text, %options)
Decodes the given text from LaTeX to Unicode.
The function accepts a number of options:
* normalize => $bool (default 1)
whether the output string should be normalized with Unicode::Normalize
* normalization => <normalization form> (default 'NFC')
and if yes, the normalization form to use (see the Unicode::Normalize documentation)
* strip_outer_braces => $bool (default 0)
whether the outer curly braces around letters+combining marks should be
stripped off. By default "fut{\'e}" becomes fut{e}, to prevent something
like '\textuppercase{\'e}' to become '\textuppercasee'. Setting this option to
TRUE can be useful for instance when converting BibTeX files.
GLOBAL OPTIONS
The decoding scheme can be set with
$LaTeX::Decode::DefaultScheme = '<name>';
Possible values are 'base', 'extra' and 'full'; default value is 'extra'.
base => Most common macros and diacritics (sufficient for Western languages
and common symbols)
extra => Also converts punctuation, larger range of diacritics and macros
(e.g. for IPA, Latin Extended Additional, etc.)
full => Also converts symbols, Greek letters, dingbats, negated symbols, and
superscript characters and symbols ...
AUTHOR
Francois Charette, "<firmicus@cpan.org>"
BUGS
Please report any bugs or feature requests to "bug-latex-decode at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-Decode>. I will be notified, and then you'll automatically be notified of progress
on your bug as I make changes.
COPYRIGHT & LICENSE
Copyright 2009-2010 Francois Charette, all rights reserved.
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
perl v5.10.1 2010-11-03 LaTeX::Decode(3pm)