Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [text-editing]

Text editing is the process of selecting and preparing text [files].

0
votes
1answer
76 views

How to replace a character in an interval delimited by two other characters from a file

I have to replace all occurrences of the vertical bar character | with a comma , when they appear between [ and ] characters, on each line of a file. Let's say I have the below string in the file: ...
0
votes
0answers
44 views

How to enable Format Picture Tools in Word while recording macro?

It's often desirable to fix some images while working in Word. Yet when you try to record macro, some functions are NOT available, for example, Format Picture Tools. Similar question was asked about ...
0
votes
0answers
43 views

Text Data File: Is it an 'Active List' or a 'Database'?

There is a text file that is accessed via a GUI application. The text file is basically a list of text items, with an index number at the start, something like: 1234: text1 text2 text3 4567: text1 ...
1
vote
1answer
83 views

How to replace asterisk symbols (*) with bold tags to denote important words and phrases?

I have a document of nearly 20K lines. Many (but not all) of the lines use asterisk symbols to denote important words and phrases. Example: What kind of *vegetable* is it? You are *best?!* I hope ...
0
votes
3answers
307 views

How to use sed to replace a whole line with another one with characters in it

The file contains the following on line 19 send -- "old@example.com\r" I want to change the email so I thought and came up with this sed -i.bak '19s/.*/send -- "new@example.com\r"/' ./a it does ...
0
votes
1answer
62 views

Replace Multiple Instances of Same Line with Only One Instance?

The title says it, really. Basically I am trying to condense an enormous log file. Notepad++ and Regex (I know a small bit) can delete these repetitive lines, but the problem is, I don't want them ...
1
vote
2answers
176 views

Extract portion of text file from first occurrence of one string to first occurrence of another

How can I extract a portion of a large text file, starting at the first occurrence of FOO and ending at the first occurrence of BAR? In my case, I'm trying to extract a portion of a sql file created ...
0
votes
0answers
32 views

Adding numbers in some cells of a table

Given an ASCII text file on a generic Unix/Linux system that looks like: | 0.9 | 0.6 | 8+1 | ... ... How can I replace the expressions with their values, for example, replace 8+1 with 9? ...
0
votes
2answers
798 views

how can i delete every word in a text file except a word?

I have a file with a bunch of info of street and WIFI(s).so i want to delete every word in the text file except ,password:********, and there is a lot of it and the word after password is variable/...
0
votes
3answers
57 views

sed: Deleting a List of Paths from a Set of Files

I have a file named common.txt that contains a list of absolute paths. For example: /etc /etc/group /var/log/syslog I also have a set of files <hostname>.txt that also contain a list of ...
0
votes
0answers
28 views

Tagging “first matching entry on each day” from a list of records, using standard *nix tools

I have a text file that contains records of the form: text text <2018.02.20-13.05.22> [dataset-london] text text text text text <2018.02.20-13.05.25> [dataset-newyork] text text text text ...
0
votes
1answer
36 views

Fixed width rows in a CSV?

I have a file whose newline delimiter has been accidentally erased. Now I have a whole bunch of 216-character lines, all displaying on a single line. Using the fact that I know the lines will be ...
0
votes
0answers
33 views

Characters merge in a weird way in text editors like Notepad

I downloaded the font Space Mono (regular) from Google Fonts (link), and also the font Fixedsys Excelsior 3.01 from its website (link). In text editors like Visual Studio Code and Brackets, these ...
1
vote
1answer
325 views

Automatically add spaces between words in a Word document

I have a Word document about 200 pages. The text I pasted from a PDF lost it's spaces for some reason. How do I fix this?
1
vote
1answer
92 views

Track changes in Word 2016

In Microsoft Word 2016, is there a way to configure the Track Changes feature so that it highlights in color the portions of text that have changed, but only shows the edited version of the text? My ...

15 30 50 per page