hi all,
im trying to use a sed command to remove all occurenes of \p\g
what i used so far is : sed 's!\p\g!!g' file
but this doesnt work ?
Any ideas, thanks for helping. (2 Replies)
Hi,
i am getting this error........
find ./ | sed '/\(*\) \(*\)/\2\1/'
Unrecognized command: /\(*\) \(*\)/\2\1/
Any idea???
regards
Apoorva Kumar (4 Replies)
Hi
I am a beginner to sed command, here I have a question about using sed to add a few characters into a token of a string.
For example, I have a file,
sqw:qqq:123124:uiqe
dfd:ccc:12390:dfjis
cde:aaa:21311:dfjsid
and, I want the output to be,
sqw:qqq:123124:uiqe... (4 Replies)
Hi all,
How can I use sed to perform a substitution if the string that I'm going to substitute is stored in a variable:
Let's say:
sed 's/abcdefg/good'
VS
tmp="abcdefg"
sed 's/$tmp/good'
The second case doesn't work. Guess it's due to the single quotes on the outside. How can I... (1 Reply)
My input text has the following pattens:
func_a(3,
4,
5);
I want to replace it with this:
func_b(3,
4,
5,
6);
I'm trying the following expression, but it does not work:
perl -p -e "s/func_a\((.*)?\);/func_b(\1,\n6)/s" <... (8 Replies)
Here is the question...
Create a new script, sub2, taking three parameters...
1.) the string to be replaced
2.) the string with which to replace it
3.) the name of the file in which to make the substitution
...that treats the string to be replaced as plain text instead of as a regular... (1 Reply)
Hello all,
I am using sed to parse a particular part of a string and am having problems. I am getting the following error:
sed: -e expression #1, char 28: invalid reference \1 on `s' command's RHS
Here is the code I am using:
echo "Alarm SET:"
echo ""
echo "Date: " $DATE
echo... (4 Replies)
I am trying to change a single line of a special file whose comment character is ! to show a path to the file in the comment. such as:
!!HFSS and mcm path: \Signal_Integrity\Package_SI\Section_Models\C4toTrace\28nm\D6HS\SLC_5-2-5\GZ41_ICZ\NSSS\
to a different path and replace the !!HFSS... (1 Reply)
i have a text
20 21 22 23 24 25 26
i want to get 22 using sed back reference.
I have used sed 's/{6}\(..\).*/\1/'
but, it does not work.
I am missing something somewhere.
Please help. (5 Replies)
Discussion started by: gotamp
5 Replies
LEARN ABOUT REDHAT
locale::constants
Locale::Constants(3pm) Perl Programmers Reference Guide Locale::Constants(3pm)NAME
Locale::Constants - constants for Locale codes
SYNOPSIS
use Locale::Constants;
$codeset = LOCALE_CODE_ALPHA_2;
DESCRIPTION
Locale::Constants defines symbols which are used in the four modules from the Locale-Codes distribution:
Locale::Language
Locale::Country
Locale::Currency
Locale::Script
Note: at the moment only Locale::Country and Locale::Script support more than one code set.
The symbols defined are used to specify which codes you want to be used:
LOCALE_CODE_ALPHA_2
LOCALE_CODE_ALPHA_3
LOCALE_CODE_NUMERIC
You shouldn't have to "use" this module directly yourself - it is used by the three Locale modules, which in turn export the symbols.
KNOWN BUGS AND LIMITATIONS
None at the moment.
SEE ALSO
Locale::Language
Codes for identification of languages.
Locale::Country
Codes for identification of countries.
Locale::Script
Codes for identification of scripts.
Locale::Currency
Codes for identification of currencies and funds.
AUTHOR
Neil Bowers <neil@bowers.com>
COPYRIGHT
Copyright (C) 2002, Neil Bowers.
Copyright (C) 2001, Canon Research Centre Europe (CRE).
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.8.0 2002-06-01 Locale::Constants(3pm)