substitution
Perl regular expression variables and matched pattern substitution
Can anyone explain regular expression text substitutions when the regular expression is held in a variable?I\'m trying to process some text, Clearcase config specs actually, and substitute text as I g[详细]
2023-01-23 22:05 分类:问答perl substitute multiple lines
I have a file which looks like: <QUERY name=\"Secondary\"> <SQLStmt>select * from my_tb; </SQLStmt>[详细]
2023-01-22 05:36 分类:问答vim string substitution
I want to substitute all cygdrive/e with cygdrive/d using vim. But I can\'t get the matching pattern correctly. Here is my command:[详细]
2023-01-21 05:36 分类:问答vim replace character to \n
I need replace all ; 开发者_如何转开发to \\n , but :%s/;/\\n/gc not worksSee http://vim.wikia.com/wiki/Search_and_replace[详细]
2023-01-20 07:57 分类:问答How do I substitute with an evaluated expression in Perl?
There\'s a file dummy.txt The contents are: 9/0/2010 9/2/2010 10/11/2010 I have to change the month portion (0,2,11) to +1, ie, (1,3,12)[详细]
2023-01-19 22:18 分类:问答Very basic replace using sed
Really would appreciate help on this. I am using sed to create a CSV file. Essentially multiple html files are all merged to a single html file and sed is then used to remove all the junk pictures et[详细]
2023-01-16 17:29 分类:问答SED substitution for variable
I have a file named check.txt which has the below contents: $ cat check.txt ~/bin/tibemsadmin -server $URL-user $USER -password $PASWRD[详细]
2023-01-15 23:26 分类:问答Can this be done faster (read file, substitute [sed], write new file)
I use this piece of code in my bash script to read a file containing several hex strings, do some substitution and then write it to a new file. It takes about 30 minutes for about 300 Mb.I\'m wonderin[详细]
2023-01-15 15:09 分类:问答JavaScript: Can you substitute variables into anonymous functions on creation? [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: Javascript closure inside loops - simple practical example[详细]
2023-01-15 02:22 分类:问答Substitute output from variable to give another output
I am trying to substitute output from variable to give another output. The variable i have problems with is the $apps. It gives 开发者_如何学Pythonme \"syntax error: bad substitution\".[详细]
2023-01-14 19:48 分类:问答