LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2012, 08:49 AM   #1
Micky12345
Member
 
Registered: Feb 2012
Posts: 58

Rep: Reputation: Disabled
spell check


i have a file called file1 and i want to check the spelling of its contents

i wrote
Code:
spell file1
but i got error as spell command not found

i am using fedora 12

is there any other command for this
 
Old 03-03-2012, 08:54 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Try
Code:
yum search spell
and install the package which provides the 'spell' command, then run
Code:
yum install <packagename>
. Also consider the 'aspell' command.
 
Old 03-10-2012, 07:28 AM   #3
Micky12345
Member
 
Registered: Feb 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
spell was not working
so i did
Code:
ispell filename
its working nicely

but i want to redirect output of this to a file named result

so i did
Code:
ispell filename > result
i didn't get any error but it was not redirected to the file result

is there any other method to do this

Last edited by Micky12345; 03-10-2012 at 08:09 AM.
 
Old 03-11-2012, 04:44 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
What does it do when you type 'ispell filename'? Does it pop up an ncurses interface (ie. an interactive interface made out of characters, on the terminal) or just print out normal output, returning to a prompt?
 
Old 03-11-2012, 12:28 PM   #5
Micky12345
Member
 
Registered: Feb 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
it shows interactive interface to correct the spellings
 
Old 03-12-2012, 07:10 PM   #6
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Right, that is why you can't get any output to the pipe - I don't know the ins and outs of it, but if you've got an interactive interface, then it doesn't output stuff in a way that you can redirect to a file. You should be able to run:

Code:
cat filename | ispell list > result
EDIT: To remove duplicates, use

Code:
cat filename | ispell list | sort | uniq > result
Hope this helps,
 
Old 03-16-2012, 11:17 AM   #7
Micky12345
Member
 
Registered: Feb 2012
Posts: 58

Original Poster
Rep: Reputation: Disabled
hii Snark1994

wht is this list of ispell list


is it the filename???
 
Old 03-17-2012, 04:23 PM   #8
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
No, "ispell list" is the command, which prints out a list of the words in the file which are spelt wrong
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
spell check in OO 3.01 ahurd Linux - Newbie 1 03-12-2009 08:16 AM
Abiword spell check hraposo Ubuntu 3 11-13-2006 10:13 PM
Spell Check error Juanita Libranet 5 10-01-2006 04:14 PM
Spell Check in Firefox mattp Linux - Software 2 10-09-2005 12:15 PM
vi spell-check? jeri Linux - General 2 09-01-2001 04:41 PM


All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration