The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
15 views

Remove duplicate lines in LibreOffice / OpenOffice Writer

I'm working on a text file in Writer which is basically a sorted list of words and phrases. It contains some duplicates I want to remove. Normally I would use a regular expression in Search & ...
1
vote
0answers
13 views

Non case sensitive search case sensitive replace

How do I search/and replace like this using sed or another tool FOO => BAR Foo => Bar foo => bar That is: Look for foo regardless of case, and replace with the same case pattern. One ...
2
votes
0answers
18 views

How to find and replace hyphens with minus signs in Microsoft Word 2013?

When editing scientific texts, I often have to replace hyphens incorrectly used as minus signs with proper minus signs (i.e. U+2212). I'm working in Microsoft Word 2013 and trying to use a wildcard ...
2
votes
2answers
32 views

Find & replace on a folder of .txt (but only first 1-3 lines)

I have a folder of .txt files. They all look like this: Title: Title of blog post. Tags: tag1,tag2,tag3 Text on the post. Just my thoughts. > A blockqoute Written in *markdown.* Using ...
2
votes
1answer
35 views

Delete text in excel cell with certain format

How do I easily delete strings in excel cells with certain formatting.I want to get cell with formatted string deleted like the second cell The string could be anything the only thing that define ...
0
votes
1answer
34 views

How can I do a recursive find and replace from the command shell?

Using a shell like bash or zshell, how can I do a recursive 'find and replace'? In other words, I want to replace every occurrence of '/path/to/folder' with '/other/dir' in all files in this directory ...
-2
votes
1answer
22 views

Inserting line before lines containing a particular word

How to insert a line before a line ending with a certain word in textpad? For eg: I want to insert a blank line before every line that ends with the word 'Chapter'
4
votes
2answers
50 views

shell script to replace a keyword in a file with the contents of another file

I'm to create a .sh to replace a specific keyword in a file using the contents of an other file. template.html contains a unique string "PLACEHOLDER" it must be replaced with the contents of file ...
0
votes
1answer
31 views

Selective Find & Replace to pretty up my C code in Eclipse or Notepad++

I am working on a old C code which have debug statments like this: debug(1, "SomeDebugStmt %s %d", someString, someNumber); ... debug(2, "another SomeDebugStmt number 2 %s %d", anotherString, ...
1
vote
1answer
169 views

How can I replace “/>XXXXX”/> with "/> within a selection

I have a CSV file which I am editing with Notepad++. There is a section of about 500 consecutive lines where I want to replace "/>XXXXX"/> with "/> where XXXXX are numbers. Is there a way to ...
2
votes
1answer
76 views

Use perl to do multi-line replacement [closed]

I have to do some replacements in many *.c files. I want to do the replacement like this: original: printf("This is a string! %d %d\n", 1, 2); result: print_record("This is a string! %d %d", 1, 2); ...
0
votes
0answers
69 views

Can't Find/Find&Replace “Purple, Accent 4, Lighter 40%”, all other colors work - Excel 2007

I have a several large Excel tables that I am managing for my current project. Whenever a metric or value in the table changes, I indicate the change by changing the background color of the cell for ...
0
votes
0answers
45 views

Search and replace with different formatting style

In LibreOffice or OpenOffice Calc spreadsheet, is it possible to search-replace while changing formatting of the replacement text to subscript or superscript at the same time? I have a spreadsheet ...
0
votes
1answer
29 views

replacing 2 different words with each other [closed]

I want to replace 2 different text sentences with each other using only Find and Replace which you find amongst the most common word processing packages. For example let say I want to replace: ...
3
votes
2answers
127 views

How to format a string substitute, or a text line, in Vim?

Is it possible to format the replacement string when substituting a match with Vim? Say I have a file with a 2-column table, where the entries in each row are separated with a space. The entries (and ...
0
votes
1answer
50 views

Handling punctuation in text pattern with vim search/replace

In vim we have the :substitute command that searches for a text pattern and replaces it with a text string. How does one handle a text pattern with punctuation in it? Minimum working example: the ...
-1
votes
2answers
15 views

Change Identical Code Strings in Multiple, Separate Files in One Command

How can I change strings of code in multiple HTML documents which are all identical, to something else? How can I change this: File A: code1 File B: code1 File C: code1 ... Into this: File A: code2 ...
1
vote
2answers
122 views

How Do You Replace Individual Periods/Full Stops Without Replacing Decimal Points?

A bit of an awkward one, this; I've been gathering data using an eye-tracker, which gives its output as .txt files (Excel is also an option but there are too many samples so notepad it is). I need to ...
2
votes
2answers
66 views

Notepad++ regex replace

id like to replace all the random numerical values to a solid value of a code random values ex: DELAY : 214 DELAY : 1243 and id like to replace all them to DELAY : 1
0
votes
0answers
39 views

Replace txt with space in a specific column

I am searching for a way to look into a specific column , and if the there is Char in that column (mostly date) I need to replace it with spaces. Example: 123456789(20140109A). Columen number 10 ...
1
vote
1answer
110 views

Search, copy, paste, edit string in hex?

I'm using Windows 7 64-bit. I've got around 10,000 or so files that I want to edit. The trouble is that's just far too much to do by hand. I'll explain what I need to do below. In these files, there ...
2
votes
1answer
55 views

How can I add an additional line break (paragraph return) to each line break found in an Open Office Document?

I have tons of text that runs together paragraph breaks like so: off the wounded, and with the same calmness and composure as before resumed the watch over his armor. But these freaks of his guest ...
0
votes
1answer
230 views

Quick file search for text

I was forced to use Visual Studio and wave off my favourite Notepad++. Now after coming back to Notepad++ I can see how slow it searches for fiels, where Visual Studio had "Solutions" where files ...
2
votes
2answers
1k views

How to replace a specific character between specific words?

Would you be able to help me in finding out how I can use the Notepad++ Find/Replace function to replace a specific character between specific words. Please see the example below, I would like to find ...
2
votes
3answers
204 views

Word find/replace: add space to postal code with wildcards

Using the “Find and Replace” dialog in Microsoft Word 2003, I want to search a list of addresses for postal codes (Canadian) that do not have a space in them, e.g., M2N3X6 L4C2A9 K5G1S7 and put a ...
1
vote
2answers
477 views

How to search and replace a string in multiple text files (within a directory) with Windows CMD? Part 2

This is in relation to this question . Unfortunately, PowerShell scripts are disabled on the system I am working on. I can't even use a simple (Get-Content). I did figure out how to do change ...
0
votes
1answer
281 views

How do I find and replace 'whole words only', in Microsoft Word?

I want to be able to find and replace eat with Eat in Microsoft Word 2007. However, I don’t want to replace every occurrence of eat such as those that can be found inside other words such as great and ...
1
vote
3answers
43 views

How to Copy words highlighted after search directly into command line with shortcut?

Here is the situation, for example, I have several lines like this: foo test foo I searched "foo" with "/" and all the two "foo"s above are highlighted. And now I want to replace "foo" with ...
0
votes
2answers
2k views

How to search and replace a string in multiple text files (within a directory) with Windows CMD?

I have multiple text files within a directory, each of which I want to replace every occurrence of the string 1 setlinewidth to 10 setlinewidth. How do I do this via Windows cmd? Please help.
4
votes
1answer
189 views

ms excel find and replace @ symbol results in broken formula

I'm trying to search and replace in excel, the column is formatted as 'Text'. Find: [@ replace with: @ Whenever this finds a match at the start of a cell i.e the cell contents start with [@ and ...
1
vote
1answer
93 views

Notepad++ Undo undoes whole replace history

In Notepad++ (v6.5), having done a series of Find-and-Replace-All's, hitting CTRL-Z seems to undo the whole series. Hitting CTRL-Y redoes the whole series. Can you undo only the last Replace-All ...
0
votes
0answers
14 views

Find and replace to change order of test response order

I am using find and replace to reformat test banks copied and paste as plain text in MS Word 2011. My pasted text comes from tables, so the test question are in this order: a, c, b, d. I want to use ...
0
votes
1answer
49 views

Insert new line before each operator [duplicate]

Suppose I have a line like this: abc + def - vfg * I want my output to be like this: abc def vfg If only a single operator is there, I can replace: \r\n+ with + but how to do it irrespective ...
1
vote
1answer
39 views

Equivalent of find ** in Sublime Text 3

I would like to search all files in a subdirectory where the filenames match an expression (e.g. *.html) in my project. In zsh or Vim one would use an expression like this: subdirectory/**/*.html ...
1
vote
2answers
114 views

How can I remove certain parts of a word document?

I have a word document filled with Physics equations and annotations. I want another word document to be a copy of the first document but with the annotations removed. I have all the annotations in ...
0
votes
0answers
52 views

How can i keep and remove some charecters from specific line notepad++

i have about 1000 of 80000 rows that looks like these lines and with different disposition ...
0
votes
1answer
453 views

Add new line after words matching a specific pattern

I'm trying to add a new line before and after a hyphenated word (one or many hyphens) in Notepad++ Input This is a search-and-replace test which I need-help to figure-out</h2> Output This ...
0
votes
2answers
84 views

replace a specific word in hundreds of files

I have a folder tree structure with hundreds of java files distributed in various sub folders I want to replace a word Foo with FooBar in each and every file Individual instances of Foo should change ...
1
vote
2answers
2k views

How can I find and replace multiple values within selected cells?

I want to run a find and replace on multiple values within a range in excel with values from 2 columns: A with the original string; B with the replacement string. I already found a macro that is ...
2
votes
2answers
119 views

Replace 'her' with 'him' and 'his'?

Is there a software/script or any way I can replace all the her in a document with him and his wherever which one's applicable respectively automatically? example Calls her and tells her that her ...
0
votes
1answer
368 views

Script for modifying file content in specified files

I tried searching previous questions but none worked, or I couldn't adapt them to my needs. I want to write a script that asks for: folder criteria old string new string And replace every file in ...
3
votes
1answer
129 views

Saving part of found term when replacing in Notepad++

I want to use Notepad++ to find/replace large chunks of code, but a hefty part of it deals with arrays. How can I put a "variable" in Notepad++'s Find/Replace window so that part of it can be saved ...
0
votes
0answers
43 views

Find and replace in libreoffice writer formulas?

Is it possible to somehow find and replace expression in formulas (equations) inserted in a LibreOffice Writer document? I want to replace "vec" by "bold" in all my formulas in a book size document.
0
votes
0answers
89 views

Is it possible to search&replace text in multiple files in FreeCommander?

I need to replace occurences of some text in many files. I've found the option in FreeCommander to search for that text in multiple files, but I can't find an option to replace that text in that ...
1
vote
1answer
64 views

Need help formulating a Vim Search & Replace

I have a large html file in which I need to search and replace over 2000 occurrences of specific string. I could do it manually but I'm sure there is a power Vim search and replace command that could ...
0
votes
1answer
180 views

Find and replace from Terminal and write to a new file with the replaced values

I have a file template.jou that has the following format: /codeline1 /codeline2 /var = var /codeline3 Now I want to replace the var part with different values like A, B and C and then write the ...
1
vote
1answer
4k views

Multi-Line Sed Replace

Consider the following text (incidentally, part of a MySQL dump): CREATE TABLE `table` ( `id` int(10) NOT NULL auto_increment, `name` varchar(100) NOT NULL default '', `description` text NOT ...
2
votes
0answers
55 views

How do I stop command-f from sharing state across applications on Mac OS X (10.8.2)?

If I have a find bar (command-f) open in two applications, and I change the text in one, the text in the other changes to match as soon as I tab over to the second application. Is there a way to turn ...
0
votes
2answers
105 views

Find and replace files accross Windows

Is there a way in Windows to find and replace all files? Could PowerShell do this? I have a .dll file that I have a bunch of and would like to update them all with one click. EDIT: I would like to ...
0
votes
2answers
205 views

Regex replace with Notepad++

In my XML file there are lots of sub strings starting with STDSUP- and then three digits. For example: STDSUP-123. I would like to replace the STDSUP with CCDA. There are some sub strings where ...