04-26-2010
Now I understand it. That helped me a lot understanding this code.
Thanks alot guys!
.: Seede
[CLEARED]
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm using the UNIX csh and i wish to use recursion to nav my way up (or down as it is) a given folder.
My little test script is called "r" and takes a folder as argv (or $1)
#!/bin/tcsh -f
set allFiles = `ls -A $argv`
cd $argv
while ($#allFiles)
if (-d... (1 Reply)
Discussion started by: gsjf
1 Replies
2. Shell Programming and Scripting
I am running a korn shell script which has a recursive function.
The script ran for 117 iterations and ended up with the following error
"recursion too deep".
what should be done to avert this?
Thanks in advance
Swamy
p.s. I am on UNIX MPRAS V4 (3 Replies)
Discussion started by: swamy455
3 Replies
3. Shell Programming and Scripting
Hello !
I need some help with my simple bash script.
This script removes all files ( with name given in $1 ) in current dir and subdirectories .
The problem is with first loop in the script ( for file in * ; do ) .
When I run the sript in my home directory this script display sometimes( ... (5 Replies)
Discussion started by: scotty_123
5 Replies
4. Shell Programming and Scripting
Hello every body. I am trying to find the factorial using the following code. But it is giving the syntax error. I tried very much but in vain. Thanks in advance for helping me
factorial()
{
if
then
y=`expr $1 - 1`
x=$(( $1 \* factorial $y ))... (6 Replies)
Discussion started by: murtaza
6 Replies
5. Shell Programming and Scripting
Hi,
If i have given to write a prog for factorial in C using recursion and without
recursion which one is better in what condition and why ?
thanks (2 Replies)
Discussion started by: useless79
2 Replies
6. Shell Programming and Scripting
Hi folks,
I need to write a script which remove files with suffix *.dmp from a specific directory ,older than 30 days and not including recursive subdirectories.
I.e:
The following command remove recursive all *.dmp files older than 30 days:
find $ORACLE_BASE -mtime +30 -type f -name... (5 Replies)
Discussion started by: nir_s
5 Replies
7. Shell Programming and Scripting
Hello, I'm scripting a newbie. I'm using KSH on HP-UX. I'm trying to write a script that will change a whole directory of file names into UPPER CASE.
I have the "convert to upper case" part of it working fine:
ls | while read filename; do
typeset -u uppercase
uppercase=${filename}
... (2 Replies)
Discussion started by: Wotan31
2 Replies
8. Programming
I want to halt a tail recursive function after certain validation. I want to come out of entire recursion without unwinding phase. How can i achieve that . The coding is done in C language. (5 Replies)
Discussion started by: joshighanshyam
5 Replies
9. Shell Programming and Scripting
Can someone please explain me why the following script calls it self recursively:
#!/bin/bash
echo Called
$0
while this not:
#!/bin/bash
echo Called
$($0)
Thanks (6 Replies)
Discussion started by: superpointer
6 Replies
10. Solaris
Hi,
I am trying to disable the recursion on DNS server (Solaris 10). I have added the lines in the named.conf as below:
allow-query-cache { none; };
recursion no;
Then restarted the solaris DNS services
svcadm refresh svc:/network/dns/server:default
Still I am able to... (0 Replies)
Discussion started by: snchaudhari2
0 Replies
diction(1) General Commands Manual diction(1)
NAME
diction, explain, suggest - Prints wordy sentences and looks them up in an interactive thesaurus.
SYNOPSIS
diction [-fpattern_file] [-k] [-ma] [-me] [-ml] [-ms] [-n] [file...]
explain
suggest
The diction command finds all sentences in an English language document that contain phrases from a database of bad or wordy diction. The
explain command is an interactive thesaurus for the English language phrases found by the diction command and only for those phrases.
The diction command reads from standard in if no file operand is provided.
The suggest command is a synonym for explain.
OPTIONS
Names a user-created pattern file to be used in addition to the default file. Passes the -k option to the deroff command. The -k option
keeps blocks of text specified nroff by requests or macros; for example, the request. Passes the -ma option to deroff. The -ma option
interprets nroff man macros only. Overrides the default nroff -ms macro package. Causes deroff to skip lists; should be used if a docu-
ment contains many lists of nonsentences. Overrides the default nroff -ms macro package. Suppresses use of the default file (used with
-f). Only the user-created pattern file is used.
DESCRIPTION
Each phrase found by the diction command is enclosed in [ ] (brackets). Because diction runs deroff before looking at the text, include
formatting header files as part of the input.
Before using the explain command, use the diction command to obtain a list of poorly worded phrases. When you use the explain command, the
system prompts you for a phrase and responds with a grammatically acceptable alternative. You can continue typing phrases, or you can exit
by pressing the End-of-File key sequence.
The explain command can also take input redirected from a file. No other command line arguments are valid.
NOTES
Use of nonstandard formatting macros may cause incorrect sentence breaks. In particular, diction does not understand -me.
FILES
Default pattern file. Thesaurus used by the explain command.
SEE ALSO
Commands: deroff(1), nroff(1)
diction(1)