Sponsored Content
Full Discussion: Improving code
Top Forums Shell Programming and Scripting Improving code Post 302991056 by RudiC on Monday 6th of February 2017 08:28:12 AM
Old 02-06-2017
I was about to ask the same as zaxxon did, as I'm surprised that none of the help given in the past seems to have fallen on fertile ground. Until a decent answer is posted, I'll withhold the "one single awk" proposal I came up with.
These 4 Users Gave Thanks to RudiC For This Post:
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

improving my script

Hi; I want to access our customer database to retreive all clients that have as language index 2 or 3 and take their client number. My input is a file containing all client numbers. i access the data base using a function call "scpshow". The total number of clients i want to scan is 400 000... (6 Replies)
Discussion started by: bcheaib
6 Replies

2. UNIX for Dummies Questions & Answers

Improving Unix Skills

Kindly any advice to improve my unix skills as electronic books i can download or valuable sites as this one etc... (3 Replies)
Discussion started by: sak900354
3 Replies

3. Shell Programming and Scripting

Improving this validate function

Hi guys, I use this function which was provided to me by someone at this site. It works perfectly for validating a users input option against allowed options.. example: validateInput "1" "1 3 4 5" would return 0 (success) function validateInput { input=$1 allowedInput=$2 for... (4 Replies)
Discussion started by: pyscho
4 Replies

4. Shell Programming and Scripting

Improving code by using associative arrays

I have the following code, and I am changing it to #!/bin/bash hasArgumentCModInfile=0 hasArgumentSrcsInfile=0 hasArgumentRcvsInfile=0 OLDIFS="$IFS" IFS="|=" # IFS controls splitting. Split on "|" and "=", not whitespace. set -- $* # Set the positional... (3 Replies)
Discussion started by: kristinu
3 Replies

5. Shell Programming and Scripting

Basic help improving for in loop

I'm obviously very new to this. I'm trying to write a simple for loop that will read the directory names in /Users and then copy a file into the same subdir in each user directory. I have this, and it works but it isn't great. #!/bin/bash HOMEDIRS=/Users/* for dirs in $HOMEDIRS; do if ];... (5 Replies)
Discussion started by: Heath_T
5 Replies

6. Shell Programming and Scripting

Need help improving my script.

Thank you for taking the time to look at this and provide input. To start, I am not a linux/unix expert but I muddle through the best I can. I am also in no way shape or form a programmer. Please keep that in mind as you read this script. This script is designed to find all files in a given... (8 Replies)
Discussion started by: garlandxj11
8 Replies
french-deconjugator(1)													    french-deconjugator(1)

NAME
french-deconjugator - analyze conjugated French verbs SYNOPSIS
echo aime | french-deconjugator > result.txt DESCRIPTION
french-deconjugator reads conjugated French verbs from the command line or from standard input and writes (to standard output) the verb's infinitive form, the mode (infinitive, indicative, conditional, subjunctive, imperative or participle), the tense (present, past, imper- fect, future), the person (1, 2 or 3, while 0 is used for the present participle tense, and 4 and 5 are used in the past participle tense), and the number (singular or plural). These fields are separated by a comma and a space. The standard input is not read if verbs are passed as command-line arguments. By convention, persons 4 and 5 are used in the past participle tense to indicate the gender: 4 means masculine (e.g., "aime" or "aimes") and 5 means feminine (e.g., "aimee" or "aimees"). A single conjugated form can correspond to more than one mode, tense and person. In this case, each alternative is written on its own line. In all cases, the end of the answer is marked by an empty line. If the word is unknown, only this empty line is written. The names for the mode, tense and number are always in English. (This is meant to facilitate automatic parsing of the output. For a French user inter- face, see the GNOME application and applet.) The command flushes its output buffer after finishing each answer. This allows the command to be easily called from another program through two pipes. The command starts by loading its database from XML files (stored typically in /usr/share/verbiste). This takes some time, so it is a good idea to have the command answer many requests instead of running it for each request. The verbiste library's source archive contains Perl and Java example programs that illustrate this technique. This commands expects to read Latin-1 characters and writes Latin-1 characters. There must not be any leading or trailing white spaces on the lines read by the command. OPTIONS
--help display a help page and exit --version display version information and exit --lang=L select the language to use (fr for French or it for Italian); French is the default language --utf8 assume that the terminal uses the UTF-8 encoding instead of Latin-1 (ISO-8859-1); try this option if Verbiste claims not to know a verb that contains an accented character --all-infinitives print the infinitive form of all the verbs in the knowledge base, one per line, unsorted; other command-line arguments are ignored EXAMPLES
$ french-deconjugator aime aimer, participle, past, 0, singular $ echo -ne 'a plu ete ' | french-deconjugator avoir, indicative, present, 3, singular plaire, participle, past, 0, singular pleuvoir, participle, past, 0, singular etre, participle, past, 0, singular LICENSE
This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. AUTHOR
See the verbiste(3) manual page. BUGS
See the verbiste(3) manual page. SEE ALSO
verbiste(3), french-conjugator(1). April 28th, 2012 french-deconjugator(1)
All times are GMT -4. The time now is 04:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy