substitution
Bash bad substitution with subshell and substring
A contrived example...given FOO=\"/foo/bar/b开发者_JAVA技巧az\" this works (in bash) BAR=$(basename $FOO) # result is BAR=\"baz\"[详细]
2023-03-03 05:46 分类:问答How to Put Newline Characters in Substitutions of Regular Expressions of GVim
I use GVim on Windows 7. I want to learn how to put newline characters by using regex substitutions. To do this I try to use \\r and \\n metacharacters but the substituted text doesn\'t show normal[详细]
2023-03-02 05:57 分类:问答How to substitute arbitrary fixed strings in Perl
I want to replace a fixed string within another string using Perl. Both strings are contained in variables.[详细]
2023-02-26 19:50 分类:问答Any suggestions for improving (optimizing) existing string substitution in Perl code?
Perl 5.8 Improvements for fairly straightforward 开发者_高级运维string substitutions, in an existing Perl script.[详细]
2023-02-25 03:34 分类:问答use sed to replace a line
I have been struggling to do this. I need to replace a line in a document with either blank space or the word \"DELETED.\" The lines are different, and I am running a counter to determine the correct[详细]
2023-02-23 06:07 分类:问答Replacing ^ and | sybmbols in a matrix
I have the following table: column1column2 1aaa^bbb 2aaa^bbb|ccc^ddd I would like to have a output file as follows:[详细]
2023-02-22 15:52 分类:问答replace an expression of the form x*(string) with x copies of that string
I have some expressions of the form 3*(item1; item2; item3;), and I want to replace them with item1;item2;item3;item1;item2;item3;item1;item2;item3; (i.e. 3 lots of the thing in brackets, not includin[详细]
2023-02-18 03:50 分类:问答sed substitution using ampersand (&)
I have searched high and low and hope you can help me. I need to find each line in a file which does NOT begin with a double quote (\") and append that line to the previous line.[详细]
2023-02-17 12:14 分类:问答Checking every possible alphabet cipher combination
I\'ve got what I think is a cipher (this isn\'t homework, just a challenge I thought I\'d try to solve via coding for fun) which is:[详细]
2023-02-16 19:04 分类:问答The dash ('-') in .htaccess
Special string - (dash) in Substitution means no substitution and is useful when you need to apply the rule while leaving original URL untouched.[详细]
2023-02-16 12:28 分类:问答