Questions tagged [text-editing]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

How to add/merge multiple lines to each other lines?

Hello how to merge multiple lines to each line of other lines? Example Lines1: test1: test2: test3: Example Lines2: add01 add02 add03 Result Needed: test1:add01 test1:add02 test1:add03 test2:add01 ...
user avatar
0 votes
2 answers
35 views

sed replace every character in match with single character like █████ redaction

Is there a sed replace function (or other Regex) that will replace every character caught by the match pattern with a single character that is meant to overlay or REDACT the matches? For instance the ...
user avatar
1 vote
2 answers
54 views

Add copy-append and cut-append to Notepad++

Is it possible to do a 'copy-append' or 'cut-append' operation in Notepad++? (means, copy/cut current selection or line if nothing selected, and append it to the copy/paste buffer instead of replacing ...
user avatar
0 votes
0 answers
28 views

what is the equivalent of ctrl+h (find and replace) in cmd command line

I need instructions specific to the command line (Windows 10) to modify a text file, by replacing a word with another word I thought of the for loop but I did not find a command to modify a file text? ...
user avatar
0 votes
2 answers
42 views

How to convert an excel file to a text file without corruption in columns?

I want to convert a bunch of data from excel to text file. But as you can see in the screenshot, numbers are not correctly in their columns. I've tried copying and pasting data into notepad and saving ...
user avatar
0 votes
1 answer
27 views

Excel to Text-editor Copying Time-saving method

I have an excel file with multiple columns and rows. I wish to copy the contents of this excel file column-wise to a word file. As the number of rows and columns are more than 100, I find it time-...
user avatar
  • 207
0 votes
0 answers
6 views

Remove section from Navigator, not from document

In LibreOffice Writer sometimes (the circumstances required for it to happen have long been elusive to me) the paragraphs I write (or paste) get added to the document outline displayed in Navigator. ...
user avatar
  • 111
0 votes
1 answer
37 views

How to remove this codes/keys from lines?

Hello everyone i hope you all have a good day. I want to know how to remove/delete the following codes/keys from lines. Example List: m-1407-m-00 64582e-2bd9-4b06-a9a1-78bfd42a7e6d SimpleHere123 ...
user avatar
2 votes
2 answers
62 views

Find and delete near duplicate lines with certain punctuation

I have a text file with millions of lines. Some lines contain the same alphanumeric sequence, but differ in case and punctuation. I consider these lines duplicates. I want to remove any duplicate line ...
user avatar
  • 35
1 vote
1 answer
27 views

How to remove duplicates usernames before a splitter in lines?

I want to remove duplicated usernames in lines before the splitter : and keep only the first line of these usernames. Lines Example: zzzz:000000zl zzzz:000000zl! zzzz:000000zl1 zzzz:000000zl123 zzzz:...
user avatar
2 votes
1 answer
48 views

Cannot use Ctrl+Backspace/Del when renaming file on Windows

The question regards Windows OS and I don't know about other OS. Since I learned that Ctrl + Backspace or Ctrl + Delete could delete whole words, I have been using extensively. But it works "...
user avatar
0 votes
0 answers
16 views

Insert line in file for each section of text a certain commit touched

I am digitizing my notes, using git to keep track. Each book of notes is a commit with several files with the date encoded YYYY-MM-DD. At first it was easy to tell what date range went with what book ...
user avatar
  • 103
0 votes
1 answer
30 views

Remove empty lines or other editing features in Visual Studio

In order to use column mode in Notepad++, you press the ALT button and start dragging. In order to use column mode in Visual Studio, you press the ALT button and start dragging. To my humble opinion, ...
user avatar
  • 1,438
0 votes
1 answer
18 views

How to get the proper output?

I am working with an algorithm that produces outputs like these: ... 2 3 0 & :instance & :|V| & :|A| & :T & :model & :rootLP & :maxFlowCuts & :maxFlowCutsTime & :...
user avatar
0 votes
1 answer
184 views

Notepad++ How to copy the last x characters of every line to the end of the same line?

Example- This: Example/Images/1234567 Needs to become this: Example/Images/12345671234567 1234567 is a random string of 7 alphanumeric characters on each line.
user avatar
  • 237
0 votes
0 answers
19 views

Text selection with Option + left/right in Sublime Text

On a Mac, when holding option and hitting left or right keys, if your text includes dashes the cursor used to stop before and after the dash. Now it seems to ignore dashes and jumps to the end of the ...
user avatar
  • 101
1 vote
1 answer
85 views

Change a keyboard layout for already typed text

I have 2 keyboard layouts (Russian and English) on my Windows laptop. It often happens that I start printing some symbols using the wrong layout. And typically what I do is delete already entered ...
user avatar
1 vote
2 answers
982 views

Find and replace text in a file after match of pattern only for first occurrence using sed

Let's say I have the following input file: Server 'Test AB' option type 'ss' option port '1234' option timeout '60' Server 'Test CD' option type 'ss' option port '1234' option ...
user avatar
2 votes
2 answers
1k views

How can I perform an ISO-8859-1 to UTF-8 text file conversion while not changing any characters that are already valid UTF-8

Consider a text file that looks like this visually: This’s ISO-8859-1 This’s UTF-8 Behind-the-scenes, the ’ curly quote character in the first line is encoded as ISO-8859-1, and the same ’ character ...
user avatar
0 votes
3 answers
70 views

How can I delete everything from XXXX to the last line before an empty line in a text document?

Given a text document with multiple instances of the content: XXXX random number of lines with random text other random text more random text random text 'blank line' i want to delete everything ...
user avatar
0 votes
1 answer
106 views

How do I delete text between 2 strings?

I have tried the regex expression .a href.*?..a. and .a href[^:]++..a. I want to replace .a href=.u.gogogo98. class=.3t5uN8xUmg0TOwRCOGQEcU rel=noopener nofollow ugc target=.blank..u.gogogo98..a. with ...
user avatar
  • 3
1 vote
1 answer
36 views

How do i put separator after each 5 string in 20 random strings?

Hello guys i want to know how do i put separators such as "-" or ":" after each 5 string in 20 random letters&numbers string of many lines using regex? So basically count 5 ...
user avatar
-1 votes
2 answers
63 views

How to make this Regex work?

i want to know how to make this Regex work ^....*:....* +[|].*$ And ^....*:....* +[=].*$ And ^....*:....* +[-].*$ It works without using ^ for first-line and $ for end of line Basically, i want to do ...
user avatar
0 votes
0 answers
28 views

Move cursor up/down 5 lines at a time with keyboard in OS X

Is there a way to move the cursor 5 lines at a time? I'm looking for something in-between the up arrow and page up keys, like the vertical equivalent to how you can use alt left-arrow to jump across ...
user avatar
  • 203
1 vote
1 answer
136 views

How to distinguish between hyphens and dashes in Adobe Acrobat?

When searching a document, Adobe Acrobat does not distinguish between hyphens and dashes. For example, when I try to search for em dashes, the results include hyphens, en dashes and em dashes. This ...
user avatar
0 votes
0 answers
37 views

How to export data from the finch IRC client to a text file?

In reference to: Getting a list of the ops for an IRC channel I'm using finch, the console variant for the pidgin client. When running a command like /names might not there be a handy "export to ...
user avatar
0 votes
1 answer
75 views

BASH - How to combine data from 2 files

I have 2 files with the following data file1: datapoint1name##datapoint1name datapoint1name.PercentUtilization= datapoint2name##datapoint2name datapoint2name.PercentUtilization= datapoint3name##...
user avatar
  • 181
4 votes
4 answers
13k views

How Can I Type A Checkmark (✓) Via Alt Code?

Presently, every time I want to check something off I have to Google "checkmark", copy the symbol from a 3rd party website, paste it into a text editor to remove formatting, and then copy ...
user avatar
  • 411
1 vote
1 answer
972 views

Extract rows with specific phrase at specific column from text file using batch file in Windows

I have a text file (epin.txt) having >2 millions of rows. Sample text: 182060045892569246925460002021 03560000000020000840000000000000ABDRGS00IN0000MMFADT265000 0917 P81 001 ...
user avatar
  • 11
-1 votes
0 answers
24 views

How to add a book name and chapter before every verse, from a text with a tag hierarchy?

Processing a poorly formatted Bible file, that needs to be transformed so that it can be read by specialized applications. My original file is formatted like this: <book>BOOK</book> <...
user avatar
12 votes
4 answers
2k views

Delete the word in which the text cursor is

When typing/editing text, how do I delete the word at which the text cursor currently is? I mean a "system-wide" solution that works in most programs (and is maybe offered by the OS), rather ...
user avatar
  • 894
0 votes
1 answer
28 views

How to increment group numbers in a settings file?

I have an application with a settings file (.ini) that contains data in the common format: [group1] foo=bar bar=baz ... [group2] foo=bar bar=baz ... ... [group500] foo=bar bar=baz ... where the ...
user avatar
2 votes
2 answers
3k views

Notepad++: Add leading zero(s) to lines but up to 9 digits

I have these numbers 94349850 999445183 999445183 94173345 54303954 42588251 150425435 74140053 1234547 12345678 123456789 I need them to be exactly 9 digits and if any is not then to add a leading ...
user avatar
0 votes
1 answer
33 views

a very simple Perl script needed

I have the following text file G.txt. I need a perl command perl -e ... that would extract all negative entries ending with Kč, so that first line it will be -107,60 and last will be -63,00 I have ...
user avatar
-3 votes
1 answer
158 views

Does txt file not support hyperlink to jump to a specific page like pdf?

I want to make table of contents in txt file each line of which contains hyperlink to jump right to the desired contents for easier navigation, like pdf bookmark Is this viable option for txt file in ...
user avatar
  • 15
0 votes
1 answer
57 views

Extracting specific links from source code in linux command line

I have a 3000 line source code text file of a page. How I can extract specific urls similar to down below and delete rest source code ? https://d17nygptf7ayu.cloudfront.net/photos/0b1983ccf6bb5674f93b....
user avatar
  • 340
0 votes
2 answers
183 views

How to insert new line separator on regular (every 13th) intervals of delimiter in text file which has no new line separator

I have a TXT file which has some raw data. I need to convert them into Excel, but my attempts are not successful. The file has hundreds of times the delimiter (separator) and that helps me convert to ...
user avatar
  • 3
0 votes
1 answer
73 views

Deleting range of lines from a text file in linux command-line?

I have a example.txt file with 280 lines of text. I only want to keep first 80 lines and delete rest lines ?
user avatar
  • 340
0 votes
0 answers
69 views

Change Timeout/Duration for Automatic Text Replacement of Text Expansion Shortcuts in Chrome on M1 Mac

I just picked up a new M1 MacBook Air with Big Sur, and I imported all of my text expansions (found in system preferences > keyboard > text). I installed the version of Chrome designed for Apple ...
user avatar
0 votes
1 answer
200 views

Replacing words with specified words using AWK

My code generates several json file all of which look similar to { "instance": "sample_instance_05", "steps": [ { "129": "North&...
user avatar
0 votes
1 answer
165 views

How to replace or look for italic text within quotation marks

As a text editor, I often come across cases where the author has double marked quotations by putting them in between quotation marks and in italics. In almost all cases it is preferred to use only one ...
user avatar
  • 111
-1 votes
1 answer
165 views

How to remove everything after a year date in RegEx?

So i have this giant text file. And I'm trying to remove all events after the dates. Example 1900 Sigmund Freud published 'Interpretation of Dreams' marking the beginning of Psychoanalytic Thought. ...
user avatar
2 votes
1 answer
82 views

Shell special chars blowing up regexp(s) in all: sed, (g)awk, and perl [closed]

I would like to change the PS1 in my ~/.bashrc programmatically with any of the the most popular regexp tools { sed, awk or perl }. However, I have problems with special characters. Note that in the ...
user avatar
  • 21
2 votes
0 answers
11 views

Extracting links from mailbox

I have a mailbox with ≈ 10 000 mail in it. Each of these mails contains a unique link that I need to click to get to a web page where I shall enter some data (name, mailaddress). I plan to use ...
user avatar
  • 552
1 vote
1 answer
524 views

Html links in dumped formatted output from links 2.21 browser

Links 2.21 is a fantastic text based browser which is able to output formatted text from URL's. links -dump "https://example.com/page.html" > output.txt As is, output.txt contains all ...
user avatar
2 votes
2 answers
234 views

Remove lines where either column is empty

I have a large colon-delimited text file containing two columns like this: valueA:valueB valueC: valueD:valueE :valueG If there is no data to the left or right of the colon, I want to remove the ...
user avatar
  • 10.5k
0 votes
2 answers
227 views

Is LC_ALL=C destructive?

I have a reasonably large (~15GB) set of text files. These files are essentially simple databases that contain credentials, and the credentials in them often fall outside of the 128-character ASCII ...
user avatar
  • 10.5k
0 votes
1 answer
238 views

How to reverse-tab to delete tabs in Outlook 365?

In Outlook 365 (locally installed client, not web client) I frequently copy/paste SQL and source code snippets into emails. For example, by default after a paste operation, I invariably end up with ...
user avatar
1 vote
1 answer
1k views

Removing specific words from text file

I have a text file tat contains email:name | address = date time I want remove everything that comes after name from each line and leave me just email:name is there a way to do that?
user avatar
  • 13
0 votes
1 answer
67 views

Word - How can I display a section of text from document A in document B that updates in real time when I change it in either document A or B?

Is it possible to display a section e.g. paragraph from document A in multiple other documents (doc B, doc C & D) so that when I edit it in either doc A, doc B, doc C or doc D it updates that ...
user avatar
  • 3

1
2 3 4 5
10