Programming :: Text Editor With Search And Capture

Dec 6, 2010

i was wondering if in all the editors/tools in linux, if there was a prog that can extract a portion of a text file, giving it a starting line of say o as the first character on a line of say o35565 oxxxxx then when it finds the next line down the file with the same thing oxxxxwhatever

it could take those lines and all the lines between them and save it to another file? i dont know if you call this parsing? or what.

View 14 Replies


ADVERTISEMENT

Ubuntu :: Text Editor Column Editor And Regex Search/replace, Incrementing Number Insert?

Jul 25, 2011

On windows I really only used Notepad++ as my text editor, it had two features that I loved.What I need to accomplish is what I would do with Notepad++ column editor.I could have like 100 lines, and place the cursor at a column, and goto edit>column editor, and I could insert an incrementing number. (I could also pad the incrementing number with 0s, this was GREAT for making batch files among other things.)So each line at that column had a number higher than the previous line.The other feature that I used sometimes was a search/replace with regex patterns.Does anyone know of an editor that has those features for linux? I am mostly after the column editor insert feature but if you know of one with both features that would rock.

View 1 Replies View Related

Programming :: Data Structure For Implementing A Text Editor?

Nov 15, 2010

Options:A double linked list with fixed size character arrays. New nodes will be added when previous ones get filled. Dynamic arrays using realloc(). Linked list has the disadvantage of not having an O(1) search like an array but I think using realloc() will be more dangerous since it moves the whole block to a new location and if the new location is not big enough to hold the whole block, realloc fails !! this case will not occur with the linked list since its nodes are scattered.

View 14 Replies View Related

Programming :: Specific Tools Or Jsut A Text Editor?

Feb 20, 2011

i have never tryed programming anyhing. i was wondering inhow i can start learning python. i use archlinux with openbox. do i need any specific tools or jsut a text editor? sorry for the noob question . from the tutorials online i see many tools like pygtk glade and so on and i cant understand anything

View 11 Replies View Related

Programming :: C++ Character Search In Text File?

Jun 23, 2011

Im trying to read a file in c++ and search for particular character for example if this is a list that I have:

Alice
Bob
David

[code]....

if the input is D, it should give David, if its B, gives bob. so in this case, meaning it reads the first character of every line. but if possible I want to make this dynamic so the user can specify which character position he is looking for, so in case he is looking for R as character index 3 in all lines, it should give Charlie. but the problem is, it does now recognize , besides, I do not know how to specify the character position in each line.

here is my code

Code:

#include <iostream>
#include <fstream>
#include <cstring>

[code]....

View 1 Replies View Related

Programming :: String Search In Text File Using Visual C++

Jan 25, 2010

im tryin to make a tool in visual C++ which will take an input string through a text box,then it will compare tht string with a text file containing data and display the matched results in list box.

View 2 Replies View Related

Programming :: Construct A Quick Regex That Will Search For Six Lines Of Text

Apr 25, 2011

I am trying to construct a quick regex that will search for six lines of text without a clear line break between them. It only needs to search, not replace, as I will be using in gEdit (with regex plugin) anyway.

It's for editing subtitle files. The video player I will be using them on can only cope with 3-line subtitles, so I just need to edit any in the srt file that contain four or more. There won't be many so I can do it manually. For example:

26
00:01:47,357 --> 00:01:49,359
a motivated business
professional with
clearly defined goals.

[Code].....

but .* seems to mean "any character, or none", so that doesn't work. My experience of regular expressions is limited, but I do know they are very powerful when used correctly!

View 10 Replies View Related

Programming :: Sed One-liner: Search Text In File And Replace It - If Not Present Insert It?

Oct 16, 2010

As indicated in the subject, I want to search a text. If the text is present I want to replace it. But if the text is not present, I want to insert it after first line and before last line.

Searched text is:CleanCache "*";

Where * can be anything.

Example: CleanCache "false"; -> CleanCache "true";

If CleanCache "false"; is not present, only insert CleanCache "true"; after first line and before last line.

View 8 Replies View Related

Programming :: Write A Utility Which Will Scan In A Text File And Search And Replace Strings?

Jul 16, 2010

Something very handy to do in a Linux shell, is manipulating files and strings - essentially parsing data. Write a utility which will scan in a text file and search and replace strings. We also want to keep track of how many strings we've replaced.

I know that my command would look like this: <utility name> <filename> <stringToSearchFor> <stringToReplaceWith>
Code: #!/bin/bash

[code]....

View 2 Replies View Related

Ubuntu :: Text Editor To Preserve Indentations On Wrapped Text?

Mar 21, 2010

I'm looking for a light-weight text editor for general-purpose composition that can preserve indentations on wrapped lines.

View 3 Replies View Related

Ubuntu :: Text Editor That Will Let Color Or Highlight Text On Demand?

May 11, 2010

Is there a simple text editor for Linux that will let you color or highlight text on demand? Something like gedit or leafpad with color? I know I can probably do this with vi or emacs, but I'm looking for something simple, need not be feature rich.

View 4 Replies View Related

Software :: Hex Editor With 'comparison' / Video Capture?

Apr 10, 2011

i have used many Hex Editors in windows, almost all had comparison features, even notepad++ to an extent could do this. I have 2 binary files, i just want to compare the differences easily and graphically, in windows HexWorkshop did this with the click of a button. I have tried 5-6 editors from the ubuntu repos but none have this option

2) Is there any desktop video capturing software that are more catered for tutorials etc where the whole desktop is captured. (Camtasia for windows i know it a massive bit of kit, but thats the sort of software im on about)

I have tried recordMyDesktop, XVidCap and a few others. However, they capture XServer and therefore things like desktop effects arent recorded. I have used VLCs screen capture which to be honest is better than the other 2 software i mentioned for recording the whole screen, but options are very limited.

View 2 Replies View Related

General :: All Text In Text Editor Turned To Boxes?

Jul 17, 2009

I was trying to install GTK+-2.8.20, so I installed it's necessary dependencies in this order:

pkg-config-0.23
glib-2.20.4
pango-1.24.4
jpeg library
tiff library
cairo

And I was about to install the last dependency: ATK (Accessability Toolkit).I opened the Archive Manager to extract the "atk-1.26.0.tar.gz" file (yes, I'm still switching from Windows so I'm fond of GUI), but I noticed all the text in that window was boxes, like the □ type box for every letter of text.So instead I thought it wouldn't be a big deal, because the terminal and regular windows weren't screwed up.I opened a text file in gedit (reference to commands in terminal, such as how to extract files via terminal), but yet again all of the text was □-like boxes.

View 2 Replies View Related

Programming :: Search A File For A Particular Pattern And If Pattern Found Replace The Line With New Text?

Feb 24, 2010

I want to search a file for a particular pattern and if pattern found replace the line with new text. i am using awk 'match($0,"pattern") != 0 {print $0} ' filename to check if the pattern exists.how do i get the line number of the pattern and delete that line and replace the line with my new text?

View 1 Replies View Related

General :: Search Text In All Text Files Of All The Sub-directories?

Apr 21, 2010

Currently, when I'm searching text in files of my PHP project, I use this line :

Code:

grep -r 'myTextToFind' *

But now, I would like to search only in ".lang" files. How can I do that ?

View 7 Replies View Related

Ubuntu :: Editor Which Can Highlight A Search Term?

Oct 20, 2010

I'm looking for a simple text editor which could highlight all occurrences of search term in the opened text file. This is a feature that I particularly like in the Windows Notepad++ editor where any selected word is automatically highlighted in the rest of the document.

View 5 Replies View Related

OpenSUSE :: Lancelot Search Doesn't Notice Menu Editor Changes?

Feb 27, 2011

I have a few items in the Menu that refer to the start scripts of extracted Java programs that came as tarballs.Go into the Menu Editor and rename one of these (e.g. to reflect an updated version)Save - Message says "Updating System Configuration"Browse using Lancelot - the old name is not there but the new one is.Search using Lancelot - the new name is not there but the old one is.The new name is only in the search after reboot.Is there anyway to get Lancelot to update the search index straight away after a menu editor change?

View 1 Replies View Related

General :: Search A String Having Spaces / Slashes / Colons In Vi Editor

Feb 2, 2010

I need to seach a string containing

the substring of 'New Request object:'

and

the substring of '/0x2ab46b1f90' in vi editor,

how do I accomplish that?

View 7 Replies View Related

General :: CLI RTF Text Editor?

Jan 14, 2011

I am really trying to find a cli/console text editor that can open/edit RTF text files? I know they them for Dindows, but what about Linux?

View 1 Replies View Related

Software :: Best (non) GUI Text Editor

Jan 2, 2010

I wanted to know what is the best (non) GUI text editor for Linux.I know there are emcas, vi(m), pico, nano, ted, ed, and so others.But I can't learn working with all of them.Which one is the best for non professional for standard text editing and a little programming?

View 7 Replies View Related

Debian :: Where To Get Beaver Text Editor?

May 24, 2010

I was experimenting with distros the other day, and came came across Slitaz. Anyway, I noticed it had a really nice and lightweight text editor called Beaver. It had basic functions like syntax highlighting, and seemed to run on the lightest bit of ram.I wanted to install it for Debian. Anyway, I can't seem to find a .deb package for this application, nor apt-get install it. How would I go about getting this editor?

View 10 Replies View Related

General :: Text Editor For Windows ?

Jun 1, 2010

Recommend a good Linux text editor for Windows (if it exists), I wrote scripts for C-Shell using txt editor of windows but I have problem, it doesn't run because windows is not UNIX, what can I do? I don't want to install linux for a few scripts, I do testing of my scripts via unix server (this server is not mine), I treed dos2unix command, also doesn't work.

View 5 Replies View Related

General :: Why VI Editor Highlighting All Text

Mar 31, 2011

All of a sudden all the text in my vi editor is highlighted. I have no idea how this happened.

View 2 Replies View Related

Ubuntu :: Best C++ Compiler - Text Editor

Mar 1, 2010

Is there anything like Visual C++ on linux? Or just a text editor and a seperator compiler?

What's the best C++ Compiler, and best Text Editor with C++ syntax highlighting.

View 9 Replies View Related

Ubuntu :: Using The Notepad++ For Text Editor?

May 3, 2010

I would like to use notepad++ for my text editor. Is there away to get this only my Ubuntu 10.04 Netbook?

View 5 Replies View Related

Ubuntu :: Looking For Specific Text Editor

Jul 20, 2010

You know how nano, vi, vim, etc... all use the entire screen when they are started? I am wondering if it is possible to get a text editor (or modifying an existing one) that doesn't take the entire terminal. The reason for this is that I to look at the output of a different command, then modify a different file while looking at the output. I want to be able to do this very fast, and it would be great if there was some way I could this all in one shell instead of creating two terminals and resizing or flipping between them. I realize the ideal solution would be a second monitor, but I can't get that right now.

View 6 Replies View Related

Ubuntu :: PDF Searchable Text Editor?

Feb 25, 2011

I recently scanned in a whole bunch of hand written notes and compiled them in a few pdf documents. I was just wondering if there was some way to edit the underlying searchable data, so that I may be able to give keywords to pdf pages (i.e. I have a page of notes that is dealing with energy conservation, so I could under the image data write "energyconservation, problem 2.3") and jump to that page.

View 2 Replies View Related

Ubuntu :: Using Kate Text Editor

Aug 4, 2011

I would like to start using kate to write c++ programs but kate i am not sure how to go about actually running the code. Right now i just have a simple Hello World script. How would i now run this and see an output on the konsole?

View 2 Replies View Related

General :: Emacs Is How Much More Than Text Editor?

May 30, 2011

I was reading how you could browse the net with Emacs but then it was stated that it was done with another application like Firefox so this would imply that Emacs is an interpreter would it not? What is Emacs capable of? Is it an interpreter that runs a text editor?

View 11 Replies View Related

General :: How To Use Default Text Editor

Jan 25, 2011

Code:export EDITOR="nano" in ".zshrc". How do I use default text editor now?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved