text-manipulation Questions
2
Solved
I have a column of numbers. In the next column, I want the text/word conversion of the numbers.
Example: 123.561 would convert to One hundred twenty three point five six one.
I do not want to co...
Hypsometer asked 6/7, 2018 at 6:10
9
Following command outputs following lines of text on console
git log --pretty=format:"%h;%ai;%s" --shortstat
ed6e0ab;2014-01-07 16:32:39 +0530;Foo
3 files changed, 14 insertions(+), 13 deletions(...
Paralytic asked 15/1, 2014 at 12:28
6
Solved
Consider the input:
=sec1=
some-line
some-other-line
foo
bar=baz
=sec2=
c=baz
If I wish to process only =sec1= I can for example comment out the section by:
sed -e '/=sec1=/,/=[a-z]*=/s:^:#:'...
Principally asked 27/7, 2009 at 9:59
4
Solved
I'm looking for a way in emacs to shift text to the right or to the left by n spaces. A similar functionality that it in vim << or >>. It should work on a region or if no region is sele...
Zita asked 1/7, 2010 at 9:17
7
I have a MySQL database and I have a query as:
SELECT `id`, `originaltext` FROM `source` WHERE `originaltext` regexp '[0-9][0-9]'
This detects all originaltexts which have numbers with 2 digits ...
Marconigraph asked 19/3, 2011 at 10:14
9
Solved
I am trying to insert a few lines of text before a specific line, but keep getting sed errors when I try to add a new line character. My command looks like:
sed -r -i '/Line to insert after/ i Lin...
Daffy asked 14/8, 2015 at 9:48
7
Solved
I have an ASP.NET page with a multiline textbox called txbUserName. Then I paste into the textbox 3 names and they are vertically aligned:
Jason
Ammy
Karen
I want to be able to somehow take the...
Operetta asked 29/11, 2009 at 3:36
2
Solved
I have a field in my database which is encoded. After using from_base64 on the field it looks like this:
<string>//<string>//<string>/2017//06//21//<string>//file.txt
The...
Beebread asked 21/6, 2017 at 21:52
2
Solved
I am trying to convert my text file to an undirected graph automatically with the help of graphviz. The text file consists of the following code:
0
A
Relation
B
A
Relation
C
B
Relation
C
1
0
A
...
Gloriane asked 12/1, 2014 at 16:58
7
Solved
I have a program, in which you can input a string. But I want text between quotes " " to be removed.
Example:
in: Today is a very "nice" and hot day.
out: Today is a very "...
Dippy asked 21/1, 2016 at 10:42
2
I have this text:
$text = "Başka, küskün otomobil kaçtı buraya küskün otomobil neden kaçtı
kaçtı buraya, oraya KISMEN @here #there J.J.Johanson hep.
Danny:Where is mom? I don't know! Café est we...
Myriam asked 8/2, 2014 at 21:54
2
Solved
In one text file, I have 150 words. I have another text file, which has about 100,000 lines.
How can I check for each of the words belonging to the first file whether it is in the second or not?
...
Teratism asked 22/1, 2014 at 15:41
2
Solved
I can't figure out where this is going wrong. Please note that I am very new to Prolog and I'm sure I'm missing something - just no idea what that might be. Could anyone help me out please?
Thanks...
Earthworm asked 3/6, 2012 at 12:7
3
Solved
I need help with using sed to comment a matching lines and 4 lines which follows it.
in a text file.
my text file is like this:
[myprocess-a]
property1=1
property2=2
property3=3
property4=4
[ano...
Lovesick asked 28/7, 2012 at 19:14
4
Solved
should be simple, but I'm going crazy with it.
Given a text like:
line number 1
line number 2
line number 2A
line number 3
line number 3A
line number 3B
line number 4
I need the Java regex ...
Strathspey asked 5/6, 2011 at 16:52
2
Solved
I need to edit a configuration file through python and i tried searching on stackoverflow and google and they don't cover my situation, since i need to replace lines in the file and perform matches...
Lil asked 14/3, 2011 at 13:19
2
Solved
How do I get the latest 100MB from a text log on Linux? Is there a tool for it, or could you point me on a script?
I have no programming experience on Shell Scripting, Perl or Python, and I don't ...
Allonge asked 9/9, 2010 at 19:36
6
Solved
I would like to create exclamations for a particular sentence using the java API?
e.g. It's surprising == Isn't it surprising!
e.g. It's cold == Isn't it cold!
Are there any vendors or tools whi...
Uttica asked 23/6, 2010 at 11:32
6
Solved
I'm currently developing a website, into which I've included a filter that attempts to obfuscate any e-mail addresses present in the webpages it serves.
As it is now, it converts the addresses int...
Ryanryann asked 8/2, 2010 at 16:24
2
Solved
I have a modal window which helps formatting text.
I have multiple textareas on the window.
The modal should not be attached to a specific textarea, so when I press an Icon in the modal window, I n...
Dilly asked 25/10, 2009 at 20:6
4
Solved
I want to split a file containg HTTP response into two files: one containing only HTTP headers, and one containg the body of a message. For this I need to split a file into two on first empty line ...
Vasquez asked 29/10, 2009 at 15:27
2
Solved
I have a long string (multiple paragraphs) which I need to split into a list of line strings. The determination of what makes a "line" is based on:
The number of characters in the line is less th...
Comfy asked 10/9, 2009 at 16:59
1
© 2022 - 2024 — McMap. All rights reserved.