quick ispell help


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting quick ispell help
# 1  
Old 08-04-2008
quick ispell help

Hi, I am trying to write a script that calls ispell (my linux version doesn't have aspell) on a file and runs from there. Pretty much looks like this at the beginning:

Code:
#!/bin/bash
# script that will spell check a file


read -p "Enter a file name: " fileName

ispell fileName

I just want this to prompt for a filename, then run ispell on that file. Also note that I do know you can just type $ ispell file and it will run, but I want it to run this way. Any help for this beginner?
# 2  
Old 08-04-2008
Quote:
Originally Posted by negzero7
my linux version doesn't have aspell

You can install aspell on any version of Linux.
Quote:
Code:
#!/bin/bash
# script that will spell check a file


read -p "Enter a file name: " fileName

ispell fileName


Code:
read -ep "Enter a file name: " fileName
ispell "$fileName"

# 3  
Old 08-04-2008
oh I see, I needed to clarify filename...quick question, I had -p and you changed it to -ep, whats the difference?
# 4  
Old 08-04-2008
Quote:
Originally Posted by negzero7
I had -p and you changed it to -ep, whats the difference?
Code:
$ help read
  ...
  If -e is supplied and the shell is interactive, readline is used to obtain the line.
  ...

It enables editing of the line as it is being input.
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. SuSE

automate ispell

Hello!! Is posible to automate ispell?? I have a lot of misspelled text and I want to launch a script that runs ispell choosing for example the first option, all that automatically. Is possible?? Thanks :) (4 Replies)
Discussion started by: elblo
4 Replies

2. SuSE

ispell

I tried to install ispell on my suse linux 8.2 do do spell cheking for my webmail but I issue rpm -Uvh ispell-3.2.06-266.i586.rpm i get the following error message error: failed dependencies: libc.so.6(GLIBC_2.3) is needed by ispell-3.2.06-266 I also try to install... (1 Reply)
Discussion started by: hassan2
1 Replies
Login or Register to Ask a Question