07-08-2006
Quick reply; Try
echo feck | aspell -l 2>&1 | tee > errors.txt 2>&1
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any way to redirect the output of the startup of a sun E250. Im basically trying to troubleshoot some init scripts and it would be useful to have a log of the startup output. (3 Replies)
Discussion started by: blakmk
3 Replies
2. Shell Programming and Scripting
Hi,
I want to move the output of a command/script to a file as well as to to be displayed on stdout.
Can anybody help me in this. Thanks in advace ..
-Chanakya M (1 Reply)
Discussion started by: Chanakya.m
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all, why does one version of this command work but not the other?
- This file already exists with 644 mod permissions
- I am logged in as d269836, no su rights.
- Box is 'SunOS' running bash I think; but runs ksh scripts OK.
This one works:
find /users/d269836 -type f -name "*.txt"... (6 Replies)
Discussion started by: dan-e
6 Replies
4. Shell Programming and Scripting
Hello...I'm having problems redirecting output from a script from a mailbot. It is a perl script that has the email sent to op_shipper piped into it.
I am receiving the email with sendmail and here is what my alias looks like for the script am I having problems with in /etc/aliases:
... (3 Replies)
Discussion started by: kuliksco
3 Replies
5. Shell Programming and Scripting
Hi,
Below is the whole string which is to be redirected to the new file.
su - oracle -c "exp $user/$pass file=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.dmp log=/oracle/oradata/backup/exp_trn_tables_`date +%d_%b_20%y_%H_%M_%S`.log tables=table1,table2 statistics=none"
... (3 Replies)
Discussion started by: milink
3 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I am interested in taking the output from a script i wrote and using it as input to a different script i wrote. So for example i want to take the output from program2 and use it as a parameter for program1. I didnt think i could use the >> symbols because i think that is just for .txt... (4 Replies)
Discussion started by: GmGeubt
4 Replies
7. Shell Programming and Scripting
I am trying to filter records based on number of "|", delimiter in my application. If number of "|" is greater than 14 its a bad record, else its a good record. I have to redirect output to two different files based on the if-then-else evaluation in AWK.
if number of “|” in file_0 > 14
... (2 Replies)
Discussion started by: siteregsam
2 Replies
8. Shell Programming and Scripting
For example,
if we run the below command,
symcfg list -thin -pool , results in an output most of the times and if the out is generated i'm able to redirect the output to a file. but sometimes it doesnt result any output and even though the output is being redirected, i can see "No Thin Pools "... (2 Replies)
Discussion started by: web2moha
2 Replies
9. Shell Programming and Scripting
Hi,
I have created script which redirect the output to file.I am able to get the output in file but not in the format.
Output :Content of the log which have 10 -15 lines.
Actal :Line1 ..Line 2Line3 Line4 Line 5
Expected:Line1
Line 2
Line3
Please... (7 Replies)
Discussion started by: karthik771
7 Replies
10. Shell Programming and Scripting
I have this line were I am selecting some fields from one file and creating a new file for the selected data.
awk -F "\"*,\"*" '{print $1"," $2}' folderone/list.txt > folderone/qlist.txt
This works, but then from this new file I want it to create a new file where it separates data:
$2 >5 it... (2 Replies)
Discussion started by: rluna
2 Replies
LEARN ABOUT DEBIAN
sgml-spell-checker
sgml-spell-checker(1) SGML sgml-spell-checker(1)
NAME
sgml-spell-checker - SGML spell checker
SYNOPSIS
nsgmls -l yourdoc.sgml | sgml-spell-checker [option] ...
DESCRIPTION
sgml-spell-checker is a tool that you can use to automatically spell-check your SGML documents. One of the advantages of this tool over
some other SGML-aware spell checkers is that it scans your documents in the form in which the SGML parser actually sees it, which means it
is not line-based, system entities are resolved, marked sections are treated appropriately, etc.
Also, this tool can be made aware of particular DTDs, in the sense that it knows not to spell-check the content of elements that do not
represent human-language text, such as <programlisting> in DocBook. An exclusion list for the DocBook DTD is included, others can be added
trivially.
The input to sgml-spell-checker is the text representation of your SGML document's Element Structure Information Set as generated by nsgmls
(from SP or OpenSP; sometimes installed under the name onsgmls). In other words, you need to pipe the output of nsgmls into sgml-spell-
checker as shown in the synopsis. Provide to nsgmls the options you need, such as -c to search more catalogs, -i to include a marked sec-
tion, or more source files. Do not forget the -l option, or you won't get any file or line references for the misspellings.
The second part of the pipe takes a couple of options; see below. Note that if the language of the document does not match your system's
locale settings, you need to use the --language option.
The output of sgml-spell-checker is a list of the words that are misspelled (in the opinion of aspell), together with file name and line
number. Note that the line number designates where the element that contains the word started, not where the word actually is. So most
likely you will have to search a few lines below the indicated location.
OPTIONS
--debug
Debug mode. Generates lots of output not of interest to the normal user.
--language=language
Sets the language of the document. (The format depends on the aspell installation, but something like en or en_US should work.) By
default the language is taken from the system locale settings.
--suggestions
Shows correction suggestions for misspelled words.
--dictionary=file
Uses an additional aspell dictionary file. This option may be used multiple times.
--dtd=dtd
Uses the exclusion list for the specified DTD (e.g., docbook).
--help Shows a brief help, then exits.
EXAMPLES
nsgmls -l -D . mydoc.sgml |
sgml-spell-checker --language=en --dtd=docbook
--dictionary=mydict1.aspell --dictionary=mydict2.aspell
(You can enter this command all on one line without the backslashes, or on several lines with the backslashes.)
NOTES
Read the aspell documentation about how to set up the appropriate dictionaries. In case you're having trouble interpreting the aspell doc-
umentation, here's how to make an aspell dictionary file from a flat word list:
rm -f mydict1.aspell # aspell won't overwrite existing files
aspell --language-tag=xx create master ./mydict1.aspell < mywordlist.txt
Watch the slashes. aspell likes to see a slash in the name or it will search some default location.
BUGS
This program should be able to identify the language from the document (e.g., <book lang="de">), but aspell doesn't handle changing the
language on the fly.
AUTHOR
Peter Eisentraut (peter_e@gmx.net)
SGML spell checker 2004-09-19 sgml-spell-checker(1)