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

learn more… | top users | synonyms

6
votes
12answers
4k views

Parsing text files

I encountered a situation tonight where I wanted to parse a text file. I had a very, very long word list that contained English words delimited by lines. I wanted to get rid of every word (or line) ...
0
votes
0answers
5 views

Quicksilver - Keyboard macro to select all text to right of cursor

At one point, I had this set up on another machine, but I don't have that mac anymore. I would like a global override to have cmd+shift+right arrow select all text to the right of the cursor on the ...
0
votes
1answer
31 views

What does `-n` option in sed do?

This is the man page entry for -n: -n suppress automatic printing of pattern space I notice that when not using -n for certain operations, each line is printed to stdout (and the requested ...
37
votes
4answers
13k views

How can I filter a file for lines containing a string in Sublime Text 2?

I want to filter a file I'm editing in Sublime Text 2 for lines contain a certain string, if possible including regular expressions. Consider the following file: foo bar baz qux quuux baz When ...
0
votes
1answer
69 views

Extract multiple strings between two words in a file

I have a text file made this way: hjkhkhkjhkh<start:"xxxxxxxxxxxx:"alt>asdsadasd<start:"yyyyyyyyyyyyyy:"alt>gfhfg ...
1
vote
2answers
7k views

Automatic forward-deleting

First and foremost... please forgive my somewhat approximate English. (I'm French.) Oh and my loooooong sentences too (I need lots of words for little meaning when speaking foreign languages... plus ...
1
vote
1answer
35 views

How to delete the 3rd occurrence of a pattern in a file, and beyond

How can I find the third occurrence of a pattern in a file (Note: not in a line) and delete the line containing the pattern and n lines below that (say, 5 lines below). e.g., COVER fafjasfj isfapifj ...
11
votes
4answers
5k views

Ctrl+Backspace inserts a small box instead of erasing

When I press Ctrl+Backspace, sometimes a small square is inserted, instead of the entire word being erased. If I copy and paste the character here, I get this: ``. But it doesn’t look quite like that ...
8
votes
6answers
1k views

Free tool for graphical representations of XML files [closed]

I need a tool which displays an XML file in a nice way. With "nice way" I mean a way on which I can fold and unfold all the nodes. Is there any free tool that runs on Windows Vista that does this ...
0
votes
2answers
52 views

How can I use advanced text editing in Notepad ++?

I have a little question. I've saved in a text file all the folders with sub-folders and files library of my music hard-drive and I try to clean this with notepad++. I've removed the path of the ...
4
votes
4answers
83 views

Apply regex to certain occurrences

I have a large file with plain text (no html tags, etc.). What I want to do is to apply regex to whole file on the one hand but on the other I want to choose which changes will be applied. For ...
1
vote
1answer
47 views

Multi line find and replace

I recently moved about 30k images from Picasa to imgur . I need to replace all those links in my wordpress blog . I have exported all the posts to xml file ( it is 96mb) . I tried this powershell ...
2
votes
7answers
13k views

Find and Replace several several different values all at once

I have a file with multiple instances of Text_1 and Text1 and I need to replace both those strings with Text_A and TextB respectively. Currently I'm doing two Find and Replace functions on each ...
0
votes
0answers
31 views

Can eclipse Ctrl+Left / Ctrl+Right skip the camel case and go to next full word instead?

When I hit Ctrl+Right or Ctrl+Left in Eclipse (Juno and Kepler at least), and I'm going through camel cased words, it takes me to the next capitalized part of a camelCased word so instead of going ...
4
votes
4answers
916 views

VERY large text files and Snow Leopard

Sometimes I need to work on EXTREMELY large text files. 200-300 megs or more. My favorite text editor on my MacBook Pro is TextMate. However, TM chokes on very large text files. Even ones around ...
2
votes
7answers
26k views

Application to open / edit a very large CSV file (500 MB, 4 million records)? [duplicate]

Possible Duplicates: Text Editor for very big file - Windows What editor/viewer to use to inspect large text based files? I have a CSV file which has about 4 million rows and is about 500 ...
5
votes
3answers
3k views

Show/Hide function folding margin on Notepad++

Is it possible to get rid of the function folding margin on Notepad++? It seems like the sort of thing that should be in the prefs but I'm not seeing it anywhere.
-2
votes
1answer
35 views

Batch text replace

I have a text file full of links like this . Links are from different sites so they don't follow same structure http://somesite1.com/wp-content/uploads/2014/10/cats.jpg ...
1
vote
3answers
26 views

How to copy text side by side in Npp or Sublime text?

I have to 2 text files . First is A B C D Second is 1 2 3 4 How do I copy both file contents side by side like this in Notepad++ or Sublime Text . If these both don't support this then please ...
0
votes
1answer
28 views

Convert old MS-DOS text document with IBM/EPSON-codes to “modern” format like ODT/PDF/DOC/etc

I have an electronic book. Format of this book is plain text with control codes for IBM/EPSON matrix printers. How can I convert this document to "modern" format (like ODT/PDF/DOC/any other)?
0
votes
1answer
39 views

Copying straight text from latex generated file

I'm trying to do some corrections to a PDF documented generated from latex. To do the corrections I first copy the text out of the PDF. What happens is that in the generated PDF, the words are cut ...
0
votes
1answer
53 views

Combining MS Word “track changes” comments from multiple readers/editors

I am a writer and use MS Word (Mac 2011) for pretty much everything, and especially the Track Changes function, which allows you to add comments to the document. I have been circulating my work to ...
0
votes
0answers
11 views

How to add custom character to start/end of line on Subtitleworkshop or somewhere else?

How can I add three dots (…) at the beginning and/or end of a line (of course different lines) that doesn’t have a dot at the end and also to a line that start with lowercase? Something like if I ...
4
votes
2answers
545 views

How to perform search and replace in lots of files with Emacs at once?

I'm looking for a solution to how to perform a search and replace in all files in a directory using Emacs.
5
votes
5answers
2k views

Ubuntu vi Acting Strange

I just installed Ubuntu Server 8 and found vi to be acting strangely (compared to vi on Fedora, CentOS and OSX). When I use the 'a' command to enter text, pressing the arrow keys results in "C", "D", ...
1
vote
1answer
3k views

Replace text when in visual-block mode

Maybe I'm searching the wrong way, but I've failed to find out how to do this. Here's the scenario: I have a list in a text file where I want to insert the same word on multiple lines, here's an ...
1
vote
1answer
722 views

Changing text in current visual selection in Vim

I have some part of a line visually selected. I would like to remove all non-word characters in the selection and replace all whitespace characters with underscores. How would I go on about this?
1
vote
1answer
2k views

Search & replace with wildcards and variable length strings in Notepad++

I am trying to edit a series of strings in Notepad++ using search & replace. What I'd like to do is to search for a particular piece of HTML code, then delete a portion of it. The challenging ...
0
votes
1answer
68 views

Is there way to add Language shortcuts in Mac OS X?

On iOS, I could add a language short cut easily in settings. Like gd stands for "have a good day". Is there a way of doing that on a Mac? I don't know if this is even possible since OS X doesn't ...
1
vote
1answer
368 views

How to setup predictive text (autocomplete) on Mac?

Apart from native support for text shortcuts, how can I enable autocomplete on Mac, presumably Cocoa applications? I mean autocomplete from dictionary or words previously used. Something like ...
0
votes
3answers
588 views

Search a text string and replace the whole line which contains it on a group of text files (Windows)

I'm looking for an automated solution than can search if a specified text string is on a line (may not be an exact match - just as long as the specified text string is contained in the line) on a ...
16
votes
4answers
51k views

How can I edit Unicode text in Notepad++?

Sometimes I edit English text that includes Unicode characters. For some reason, on my PC, Notepad++ converts Unicode characters to ???'s thereby corrupting the text and losing all that data. I'm ...
1
vote
2answers
189 views

Parsing two input files and comparing line existence

I need to take two text files and check to see if a line that exists in File A doesn't exist anywhere in File B. Each line in File A that does not exist in File B should be copied to an output log. ...
2
votes
7answers
7k views

How to delete all lines which contain a word with TextWrangler?

I have a giant file with thousands of lines, I want to delete only the lines which have the word "Foo" in them. How would I go about doing this? I'm on a Mac, so I could use some command line ...
2
votes
3answers
35 views

Is there a way to do concatenated copying of text in os-x or linux?

Say you are copying snippets of a word document into textedit. It is a waste of time to go back and forth for each snippet when you can do it once using concatenation into a copy-queue. Is there a ...
1
vote
4answers
82 views

How to find and replace string data in text file

I'd like to be able to parse a text file which contains data such as: 2014-08-06 18:06:15 e:\shared\filename1.Shared orphan entry BM-100 2014-08-06 18:46:15 e:\shared\filename222.Shared orphan ...
5
votes
3answers
1k views

Beyond-compare wont ignore line-breaks?

I have this comparison : I want those line to be treated equal. but it showes me they are different. I already applied those settings : What am I doing wrong ?
8
votes
5answers
21k views

What is the closest thing to Windows notepad on the Mac?

What is the closest thing to Windows notepad on the Mac? I'm using Leopard.
0
votes
0answers
28 views

How to improve text quality using Ghostscript

I have a Pdf document downloaded with a size of 230MB. Well the text doesn't seem to be clear although a strain makes the document understandable. I have heard about Ghostscript but it as numerous ...
1
vote
1answer
40 views

Using a value from a file and updating it using a Linux script:

I have an automatic build script for my build server that builds Android applications. As part of this building process, I need to increment two parameters in one of the Android application files ...
49
votes
4answers
120k views

How to split large file on Windows?

Is there a tool to split large text file (9Gb) into smaller files so that I can open it and look through? Anything usable from command line that comes with Windows (XP)? Or what's the best way to ...
1
vote
2answers
8k views

Split a string in ksh

I am looking for a quick/easy way to split a string in ksh. It has varied number delimiters (spaces) between each item. Example: value1 value2 value3 Any suggestions/advice?
6
votes
3answers
2k views

What is a CUA editor?

A term I hear now and then is a "CUA" text editor. What is a CUA editor?
33
votes
4answers
20k views

How to make cut/copy/paste in GVim on Ubuntu work with Ctrl+X,Ctrl+C,Ctrl+V?

By default, the cut/copy/paste short-cuts in GVim on Ubuntu are: Cut "+x Copy "+y Paste "+gP I would like to use control key combos in GVim, like I use in Firefox and othe gnome ...
0
votes
1answer
34 views

What does ctrl-opt-v do in OS X?

If you edit text on a Mac and press ctrl-opt-v, nothing appears to happen. But if you now use the arrow keys to move the cursor, you will notice that it will "stand still" at the point where you ...
4
votes
4answers
2k views

Is there any Firefox addon to convert text to UPPERCASE or lowercase [closed]

Is there any Firefox addon to convert a bit of selected text (in text fields), to "UPPER CASE", "lower case", "Proper Case", and "Sentence case"? This is useful when writing email.
5
votes
3answers
648 views

Clipboard addon to remove text formatting

I was just wondering if anyone know of a Windows application that will remove formatting from any text in the clipboard? So if I copy something from Word into another document, the content is pasted ...
18
votes
3answers
19k views

Converting CSV to fixed-width in Notepad++?

Is there a way in Notepad++ to convert a comma-separated file to fixed width columns? This feature exists in UltraEdit and explained in Working with CSV files, but I am happy with my Notepad++, and I ...
1
vote
1answer
537 views

RoboCopy Log File Analysis

Is it possible to analyse the log text file outputted from RoboCopy and extract the lines which are defined as "New Dir" and "Extra Dir"? I would like the line from the log contain all the details ...
2
votes
2answers
4k views

Multiline select in Notepad++

In Sublime Text, if I perform a find for an occurrence of a particular word, not only is this occurrence found, but it is also selected and has the cursor at the end of each occurrence so that pushing ...