My project uses a substitution quite a bit (.. |apipath| replace:: http://domain/api/v1), and I'd like to be able to use this substitution inside an inline literal block. I want something like the following rST source:
Request URL:…
I have dozens of bash scripts in a certain location (/subdirectory1) with the incorrect pathname (pathname1) within the file. I would like to somehow replace this pathname with pathname2 for all of the bash scripts *.sh within that subdirectory.
Is…
I have the following text:
," abc def , qwerty ghans , ghjt bnsn 5667w !*? ",
I want to match and substitute the commas in between ," AND ", for another character (or better yet, remove them).
I have file where I want to update the values in the first field of a specific column (say 1 and 2) when there is a context (pipe i.e |) in the 5th field of that column.
I can use python but splitting the lines, substituting the values and joining…
I am pretty new to bash (and linux overall).
Been researching the whole day thinking this was a simple fix that I was not understanding but I've tried a thousand different things and still cannot make it work... need an extra pair of eyes and some…
I have a customer on a webshop, who has managed to write her last name as 195 131 026 082 110 116 111 102 116 013 010 (ÃRntoft), which is breaking stuff.
The character 026 ("Substitute"), is my problem.
How is it possible to produce this character…
so I am making a decryption software that allows the user to input some text and then they can swap out letters in the program. For example, there is a drop down box that allows you to swap all the "O"'s in a user input to "W". So in the input…
I'm creating a substitution cipher in c, reading characters from a text file and encrypting them. However, when I run the program, the text in the file is not encrypted. I'm not sure, however, what exactly I'm missing. Any and all help is…
I have multi-lines string from git log in variable
and want to replace matched lines with hyper-links
but keep some parts of the original string with Groovy.
Example:
commit 7a1825abc69f1b40fd8eb3b501813f21e09bfb54
Author: Filip Stefanov
Date: …
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 go. The rules for the substitution are held in…
I have the following perl one-liner to convert /path/to/file.txt to /path/to/
echo "/path/to/file.txt" | perl -pe 's{(.*)}{File::Basename->dirname($1)}ge'
but I'm missing something in my invocation of File::Basename->dirname(), causing the…
In an effort to make the .rst files more readable I started using substitutions instead of refs everywhere for common objects. For example :ref:user-story is now |user story|. The output is fine, but when a user mistypes a substitution we do not…
I'm hoping this will be a simple one but it's stumped me this morning.
I have a spreadsheet which in column A has verbatim from customers. In each cell of column A there could be more than one word.
What I want is to filter Column A and its rows so…
I want to substitute from cypher text to plain text. But there can be n! possibilities where n is the number of characters
for example
cypher: [ a, b, c, d ]
plain : [ x, y, z, m ]
Let's say that I am sure one of the combination is correct plain…
I am working on these three recursion funtion to prove a big-O. I tried to use substitution method. But, I have no clue to guess a proper upper bound.
(a) T(n) = T(n − 2q − 1) + T(3q/2) + T(q/2) + Θ(1)
(b) T(n) = T(n − q − 1) + T(n/2 − q) + Θ(n)
(c)…