10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need all the end tags of </font> to be replaced with new line yet enclosing tag to be retained </font>. Please help me in this regard.
<font>ghi</font> (3 Replies)
Discussion started by: Badhrish
2. Shell Programming and Scripting
I have below input file
1.order number is useful.
2.vendor_id is produced.
3.the vandor name is "malawar".
I want output file like
1. order number is useful.
2. vendor_id is produced.
3. the vandor name is VmalawarV.
in input file line number 1.order number there is no... (4 Replies)
Discussion started by: vinothsekark
3. Shell Programming and Scripting
I'm trying to match and perform the substitution (below) but failed.
Attributes = "SampleAttributes"
Attributes1 = "SampleAttributes1"
grep Attributes File1 | sed 's|Attributes\s=\s\"\"|Attributes = \"ReplaceAttributes\"|'
Any ideas? :( (2 Replies)
Discussion started by: antderu
4. UNIX for Dummies Questions & Answers
I have variable inside shell script - from_item.
from_item = 40.1'1/16
i have to first find out whether FROM_ITEM contains single quote(').
If yes, then that need to be replace with two quotes ('').
How to do it inside shell script? Please note that inside shell script........ (4 Replies)
Discussion started by: yogichavan
5. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
6. Shell Programming and Scripting
How do I replace the charachters = '*' to = '^' using Sed commands.
As I have several * in the script, thus I have to replace the single quotes too.
Please let me know any solution.
I have tried the escape character backslash '\' but it doesnt help.
sed "s/= \'*\'/=... (2 Replies)
Discussion started by: prachifun
7. Shell Programming and Scripting
I need to find all strings in single quote and change the case of the string to UPPER.
xyz abc ccc 'zxxx7U'
dfsdf sdfdd aaa 'oR77' and 'or88'
xyz abc ccc 'ZXXX7U'
dfsdf sdfdd aaa 'OR77' and 'OR88'
Appreciate your help!!
Selva (6 Replies)
Discussion started by: selkum
8. Shell Programming and Scripting
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)
Discussion started by: NanJ
9. Shell Programming and Scripting
i am using sed command to grep just a valuable data for my report generating. Thanks to the person who assists me on before thread. the problem that i encounter now is when i executed below command
The output will give me like below output in between the data, there is a double quote. How... (6 Replies)
Discussion started by: anakiar
10. Shell Programming and Scripting
i m trying the following command but its not working:
sed 's/find/\'replace\'/g' myFile
but the sed enters into new line
# sed 's/find/re\'place/g' myFile
I havn't any idea how to put single quote in my replace string. Your early help woud be appreciated. Thanx (2 Replies)
Discussion started by: asami