Software :: Word Count On Kate ?

Aug 4, 2010

Is there a way I can get KDE Advanced Text Editor (KATE) to do word counts on documents I'm editing?

View 12 Replies


ADVERTISEMENT

Programming :: How To Implement Count Word

Nov 9, 2010

I have these but not working.

size_t count_words(const std::string& s)
{
std::istringstream is(s);
return distance( std::istream_iterator<std::string>(is),
std::istream_iterator<std::string>());
}
and
std::string s; // word count
unsigned int wordno = 0;
while(getline(myfile, s))
{ ++wordno;
if(s.empty())++ wordno;
else wordno += count_words(s);
std::cout << s << '
';
}

myoutput1<< "Number of words : " << wordno << '
';
myoutput1 << "
Word" <<" " <<" Occurrence" <<endl;
myoutput2<< "Number of words : " << wordno << '
';
myoutput2 << "
Word" <<" " <<" Occurrence" <<endl;

View 6 Replies View Related

OpenSUSE :: OO Writer - No Hotkey For Word Count

Jul 28, 2010

I don't often use a full word processor, but the Mrs has started to do some freelancing and needs one. I told her that that OO was every bit as good as Microsoft Word.... In OO virtually NONE of the menu options have hotkey combos.. Are they always user defined? F'rinstance, no hotkey for word count, or even option to put a button on toolbar? She is threatening to start booting to Windows!!!

View 6 Replies View Related

Programming ::Word Count For All Files In A Directory?

Apr 7, 2011

Word Count for all files in a directory

View 1 Replies View Related

Programming :: Character Count Of A Word Is Coming Wrong.

Jun 11, 2010

I am using RHEL 4.5.

I am trying to count no. of characters in a word but it is coming one more than what it actually should be.

Code:

I can have a work around by subtracting 1 from the output (6-1=5 in this case). BUT, I am just curious to know, why the character count is coming as 6 and not 5.

View 7 Replies View Related

Programming :: Word Count Script For Medit - Troubleshoot ?

Apr 28, 2011

I love medit for text editing, but it's missing a word count feature.

I found a "Statistics for medit" script on the Arch Linux Forums, but after installing as instructed, there was no popup.

So I set it to output to a pane instead, and I got:

Code:

My scripting skill is extremely basic, so any troubleshooting. (I'm using CrunchBang Statler, which is Debian Squeeze based.

View 6 Replies View Related

General :: Kate Plugin That Enables File Comparison In Kate?

Jul 16, 2010

Is there a Kate plugin that enables file comparison in Kate?, something like the plugin available for Notepad++

View 1 Replies View Related

General :: Find/grep/wc Command To Find Matching Files - Print Filename And Word Count?

Sep 11, 2009

I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:

wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;

View 10 Replies View Related

Programming :: DBD::mysql::st Execute Failed: Column Count Doesn't Match Value Count At Row 1

Feb 24, 2010

I have the following perl/DBI script:

Quote:

#!/usr/bin/perl
use DBI;
my ($db, $user, $pw) = ('dbname', '****', '***********');
my $dbh = DBI->connect("DBI:mysql:$db",$user,$pw) or die "Cannot connect to $db: $DBI::errstr

[code].....

The error message is

[Wed Feb 24 13:03:27 2010] myscript.cgi: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at myscript.cgi. [Wed Feb 24 13:03:27 2010] myscript.cgi: DBI::db=HASH(0x8a30c60)->errstr

View 2 Replies View Related

Programming :: Read Two Files Word By Word At A Time Using Any Loop By Shell Script?

Mar 4, 2010

Well, I am facing one issue:How can i read two files word by word at a time using any loop as i need word by word comparision in shell script?Please let me know pseudo code.

View 14 Replies View Related

Programming :: Bash Shell Script Read File Word By Word?

Jan 21, 2011

I have a output file look like this:
{"test1" : "test2", "test3" : "test4"},

How can I read word by word in each line?This is not working code:

a=0
while read word
do a=$(($a+1));

[code]...

View 14 Replies View Related

General :: Search Word And Delete Only The Word And The Line Using Sed Command?

Jun 28, 2011

Want to search for ~ and delete it as well as to append the entire line to the above line. For Ex:

1111xxxx date Sandy area is ~around this area.3222xxx date There seems to ~left side of map, the colours are accurate (showing green areas)Even if I ~zoom in, the green parks, xxx3258 date The dammed up
~away, the "other" body of water varies ~blackNatural gas leaching.

IT MUST LOOK LIKE:

1111xxxx date Sandy area is around this area. 3222xxx date There seems to left side of map, the colours are accurate (showing green areas)Even if I zoom in, the green parks, xxx3258 date The dammed up away, the "other" body of water varies blackNatural gas leaching.

View 4 Replies View Related

Programming :: Bash Read Input Word For Word ?

May 4, 2010

I am pretty new to bash scripting...I am trying to write a script that will take an input and read it word for word and then DO something with it like echo. I have been able to find how to read word for word from a file but I don't know how to do it with input.

I was looking for something like

Code:

exit 0 The input would be A-Z a-z 0-9 and have a single space between each word.

View 2 Replies View Related

General :: Sed Append Word At End Of Line If Word Is Missing

Feb 19, 2010

I have to modify formsweb.cfg file in Oracle IAS.

Problem description

In formsweb.cfg file are two lines with labels archive_jini= and archive= at the beginning of line. After equal sign (=) is row of filenames of java archives delimited by coma(,). When I insert a new jar file in java directory, I have to append the very same name of jar file to both lines if that name is not yet present.

Example snippet from formsweb.cfg

View 2 Replies View Related

General :: Next Word Of A Particular Word ?

Feb 9, 2011

In linux is there a way to find the next word of a particular word of a file. grep displays entire line of the particular word. But i want only the exact next word of that particular word.is there any command for that.

View 13 Replies View Related

OpenSUSE Install :: Arial-KOI Type, The "è" Word Is Replaced By A "X" Word?

Aug 3, 2011

Found a font bug: in the Arial-KOI type, the "è" word is replaced by a "X" word...

View 3 Replies View Related

OpenSUSE :: Can't Run Kate In Gnome?

May 11, 2011

Kate run well in gnome several weeks ago but know it dose not. I click the Kate icon in the application panel but can not see any response.

View 7 Replies View Related

Ubuntu :: Can't Get Kate To Load

Jan 26, 2010

when trying to load Kate I get the following error message:

trying to create local folder /home/xxx/.kde/share: Permission denied
trying to create local folder /home/xxx/.kde/share: Permission denied
trying to create local folder /home/xxx/.kde/cache-desktop: Permission denied
...
kdeinit4: Aborting. bind() failed: : Permission denied
Could not bind to socket '/home/xxx/.kde/socket-desktop/kdeinit4__0'

View 4 Replies View Related

Ubuntu :: How To Install Kate On 9.10

Apr 13, 2010

I was just wondering how to install Kate on ubuntu 9.10I attempted the usual:sudo apt-get install katethe terminal then outpts that it cannot find the package.I thought maybe it was "Kate" or "KATE" but neither work

View 6 Replies View Related

OpenSUSE :: Kate/Kwrite - SSH And Permissions ?

Feb 10, 2010

I have a permissions question that I'm sure has a simple answer but one I can't find. When saving files through SSH using kate or kwrite, the permissions always reset to 644 when I want them to stay at 666/777. When using notepad (not sure what this is, it's just in my right click contex menu under "open with...") the permissions persisted after I saved. Permissions also persist with kate and kwrite on my local machine.

Is this something I need to configure on the server? Using Opensuse 11.2, kde 4.3, kwrite 4.3.1-5.6.3, kate 4.3.1-3.7

View 9 Replies View Related

OpenSUSE :: Kate Crashes On Launching?

Jun 25, 2010

kate is my favorite text editor, and everything was working fine until recently. Whenever launching Kate, whether by opening a text file or by clicking the Kate icon, a dialog box pops up that KDEInit could not launch 'konsole'. In the background, a konsole window flashes briefly before disappearing.The baffling thing is, that if I click the "run Kate" shortcut, instead of the Kate shortcut, then Kate launches normally. I'm running 11.2 with all the updates installed

View 9 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

Software :: Templates In Kate Editor ?

May 30, 2011

Is there a way to set up Kate to use a single template to set both the normal and printing fonts without having to go into "settings > configure kate" each time I create a new document?

In /home/tom/.kde4/share/config/kateschemarc the printing and normal are separate categories. Is there a way to change both at the same time?

Kate 3.6.0 under KDE 4.6.00 in openSUSE 11.4

View 1 Replies View Related

Programming :: How To Test Kate Plugins

Mar 20, 2011

I wanted to make some modifications to a Kate plugin, so I cloned the git repository, started doing a few changes, and it compiled. The problem is that when I run it, it uses the version of the plugin installed in the system, not the one compiled with Kate.

View 1 Replies View Related

Slackware :: X Randomly Crashing When Using Kate?

Jun 6, 2011

I'm using version 13.37 for Slackware (not current). I've tried using XFCE and KDE (currently using KDE) and after using it for a while, it will seemingly randomly crash (20 minutes to multiple hours). The only thing that seems to be constant is that I'm always using Kate when it happens.

View 12 Replies View Related

OpenSUSE :: Kate Color Scheme Won't Change?

Oct 3, 2010

I'am trying to change the color scheme of kate, using ./install.sh or append the content to that archive explained here:

zenburn - eye-gentle Kate color scheme KDE-Look.org

but doesn't seem change nothing, and doesn't appear "zenbur" in "Default Scheme", or even directly in kateschemarc but it is empty!

View 2 Replies View Related

Ubuntu :: Possible To Have The Kate Terminal Open In New Window?

Nov 9, 2010

is taht possible to have the kate terminal open in new window?i dont like very much to have it in the same windows as the kate and so i would like to have it in another window

View 2 Replies View Related

Ubuntu :: Cant Copy From Kate And Paste Into Other Applciations

Nov 29, 2010

I am running ubunutu 9.10 and am having problems with the Kate text editor (v3.3.2). I leave my computer on for many weeks at a time as it is part of a network and others use it to run code on. During this time I am using kate as my text editor, and copy and paste from kate to other applciations, such as the terminal.

Infrequently but regularly enough to cause me trouble I can no longer paste text I copy from kate. I can copy and paste within kate, but I cant copy from kate and paste into the terminal or thuderbird, or firefox etc.

View 1 Replies View Related

Ubuntu :: Kate Editing Java File?

Jan 30, 2011

I am a CS major and Iv'e been using vim with a custom rc file to do my editing... A professor suggested we can use kate with terminal for better speed so I thought I would give it a try. Unlike vim, geany, eclipse and others kate does not indent java code, for example after "{ <ENTER>" it should indent to the right 1 tab, but it does not, so I have to press <TAB> every time I go to new like, and I have to go back and forth for different statements...

This does not make things faster at all, Is this even possible? Any other editor suggestions that do not use GTK, but kde native Qt with terminal emulator?

View 2 Replies View Related

Software :: Debugging Tools Scripts In Kate?

Oct 2, 2010

If you have a script that works sometimes and doesn't work other times in Kate and there just might be error outputs that kate isn't passing around in any obvious manner, how would one know how to find out what's going wrong?I'm talking about the user-made scripts under Tools/External Tools. When you run those scripts and an error happens, I don't see any error output.

View 2 Replies View Related







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