01-21-2004
Re: how does unix identify C and other language code!
Quote:
Originally posted by a25khan
for example, unix recognises this C code in the body of any script.
#include <stdio.h>
FILE *popen(const char *command, const char *open_mode);
int pclose(FILE *stream_to_close);
Excuse me??!!! Recognition of c code is not mandated by Posix for any interpreter.
csh
tcsh
sh
ksh
bash
are a few shells that can do no such thing.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?.
Regs
Anand (5 Replies)
Discussion started by: u449064
5 Replies
2. Shell Programming and Scripting
Hi Friends,
I need to have a command in Unix which output all teh records havingg junk characters in a file....
I know a command cat -tv <Filename> which opens the file and we can check for any junk character in it.
But my requirement is to fetch ONLY THOSE records having junk characters.... (6 Replies)
Discussion started by: sureshg_sampat
6 Replies
3. UNIX for Dummies Questions & Answers
I am a sql programmer, I don't know much about UNIX. I want to modify the existing unix script
-----------------------------------------------------------------
............
cd /home/location/file
set timing on
sqlplus user/$IDPW <<!
prompt RUNNING NEW QUARTER PROCESSING. PLEASE WAIT.... (1 Reply)
Discussion started by: stefani
1 Replies
4. UNIX for Advanced & Expert Users
Guys,
Is there any UNIX command that captures the 'Unix process which is performing high disk I/O reads and writes'.
can you help me in this?
-Swamy (6 Replies)
Discussion started by: avsswamy
6 Replies
5. Shell Programming and Scripting
hi,
I have a requirement in that i need to process a input file
The problem is, the input file sometimes it is coming in dos mode and some times it is coming in unix mode
The script which i have written will process the file only if it is in unix mode and it is not processing if the file is in... (7 Replies)
Discussion started by: trichyselva
7 Replies
6. UNIX for Dummies Questions & Answers
Like many UNIX users, there is a small team that is connected to UNIX (under the same UNIX user) via putty from a Windows PC.
Is there a way, once under UNIX, to know the address of the originating computer or anything that can differentiate initial users ? (7 Replies)
Discussion started by: popescu1954
7 Replies
7. Programming
Hi,
We are accessing our remote webserver using libcurl.We are using GET method to post the request.The request is a simplified URL.We will receive XML Response for the URL request.
Problem
For Few Scenarios, response for the URL request is received & our component is killed abruptly. Can... (11 Replies)
Discussion started by: banus
11 Replies
8. UNIX for Dummies Questions & Answers
I am a newbie to unix and appeared for an interview and was asked this question.
If i was working for a company as a support person on an application and has to monitor the logs how would i determine if there was outage by checking the logs and where would i search for the issue initially. and... (2 Replies)
Discussion started by: praveenveerla
2 Replies
9. AIX
Hi All, Need an urgent help, I have a requirement to find long running unix processes.. I have tried the below commands, but not succeed. I need to arrange the unix processess in an order of elapsed time (high to low) that runs in a system.
For Eg:
Consider we have 3 processes,
Pid 1
pid 2... (5 Replies)
Discussion started by: mohamedirfan
5 Replies
10. Shell Programming and Scripting
Hi All,
I have the below scenario in my environment
Developers used to copy file from windows to Linux box. Some time on the copied file developers miss to run the dos2unix utility. Because of this script gets failed during the execution. Most of the failures are due to the dos2unix format... (7 Replies)
Discussion started by: kalpeer
7 Replies
LEARN ABOUT DEBIAN
diction
DICTION(1) User commands DICTION(1)
NAME
diction - print wordy and commonly misused phrases in sentences
SYNOPSIS
diction [-b] [-d] [-f file [-n|-L language]] [file...]
diction [--beginner] [--ignore-double-words] [--file file [--no-default-file|--language language]] [file...]
diction -h|--help
diction --version
DESCRIPTION
Diction finds all sentences in a document that contain phrases from a database of frequently misused, bad or wordy diction. It further
checks for double words. If no files are given, the document is read from standard input. Each found phrase is enclosed in [ ] (brack-
ets). Suggestions and advice, if any and if asked for, are printed headed by a right arrow ->. A sentence is a sequence of words, that
starts with a capitalised word and ends with a full stop, double colon, question mark or exclaimation mark. A single letter followed by a
dot is considered an abbreviation, so it does not terminate a sentence. Various multi-letter abbreviations are recognized, they do not
terminate a sentence as well, neither do fractional numbers.
Diction understands cpp(1) #line lines for being able to give precise locations when printing sentences.
OPTIONS
-b, --beginner
Complain about mistakes typically made by beginners.
-d, --ignore-double-words
Ignore double words and do not complain about them.
-s, --suggest
Suggest better wording, if any.
-f file, --file file
Read the user specified database from the specified file in addition to the default database.
-n, --no-default-file
Do not read the default database, so only the user-specified database is used.
-L language, --language language
Set the phrase file language.
-h, --help
Print a short usage message.
--version
Print the version.
ERRORS
On usage errors, 1 is returned. Termination caused by lack of memory is signalled by exit code 2.
EXAMPLE
The following example first removes all roff constructs and headers from a document and feeds the result to diction with a German database:
deroff -s file.mm | diction -L de | fmt
ENVIRONMENT
LC_MESSAGES=de|en
specifies the message language and is also used as default for the phrase language. The default language is en.
FILES
/usr/share/diction/* databases for various languages
AUTHOR
This program is GNU software, copyright 1997-2005 Michael Haardt <michael@moria.de>.
The English phrase file contains contributions by Greg Lindahl <lindahl@pbm.com>, Wil Baden, Gary D. Kline, Kimberly Hanks and Beth Morris.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
HISTORY
There has been a diction command on old UNIX systems, which is now part of the AT&T DWB package. The original version was bound to roff by
enforcing a call to deroff. This version is a reimplementation and must run in a pipe with deroff(1) if you want to process roff docu-
ments. Similarly, you can run it in a pipe with dehtml(1) or detex(1) to process HTML or TeX documents.
SEE ALSO
deroff(1), fmt(1), style(1)
Cherry, L.L.; Vesterman, W.: Writing Tools--The STYLE and DICTION programs, Computer Science Technical Report 91, Bell Laboratories, Murray
Hill, N.J. (1981), republished as part of the 4.4BSD User's Supplementary Documents by O'Reilly.
Strunk, William: The elements of style, Ithaca, N.Y.: Priv. print., 1918, http://coba.shsu.edu/help/strunk/
GNU
June 09, 2006 DICTION(1)