11-11-2012
Ah, got you. Sorry for my misunderstanding. I can't give a terminal answer, but to my knowledge that's not possible with select. Unless some other guy can show you a tricky solution, you need to do this kind of selection with echo and read.
10 More Discussions You Might Find Interesting
1. Programming
Hi
I want to read messages from multiple interfaces using one select() statement. Does anybody knows if I can specify multiple fds in the *readfds parameter? If yes, what's the max num of fds?
Something like the following:
fd_set descrSet = {0};
int retVal;
MyStructS *msg = NULL;
... (1 Reply)
Discussion started by: amatsaka
1 Replies
2. Shell Programming and Scripting
Hello all,
I'm developing a deployment script at work and at one point it would need to display something like this:
Which version of ADMIN would you like to deploy?
1) 1.0.0 (store1, 10 Jan 2004)
2) 1.0.1 (store1, 20 Jun 2004)
3) 1.0.2 (store1, 15 Jul 2004)
Select a version :
I know... (5 Replies)
Discussion started by: domivv
5 Replies
3. UNIX for Dummies Questions & Answers
How do I create a script that provides a count of distinct values of a particular field in a file utilizing commonly available UNIX commands (sh or awk)?
Field1|Field2|Field3|Field4
AAA|BBB|CCC|DDD
111|222|333|777
AAA|EEE|ZZZ|EEE
111|555|333|444
AAA|EEE|CCC|DDD
111|222|555|444
For... (2 Replies)
Discussion started by: Refresher
2 Replies
4. Shell Programming and Scripting
Hi all,
Before I give up on using SELECT for my first attempt at creating a menu driven script, can anyone please advise if it is possible to include a line break for PS3, I've tried putting in a \n and it does not work.
Tried for both bash and ksh and both gives the same result. Preference... (3 Replies)
Discussion started by: newbie_01
3 Replies
5. Shell Programming and Scripting
Hi All
I am using the below code to chose a file to view :
PS3="Select file to view : "
select FILE in `ls` QUIT
do
if ; then
clear
cat $FILE
else
break
fi
REPLY=''
done
Everything works fine as long as I am giving the correct choice .
But when i give a... (4 Replies)
Discussion started by: ningy
4 Replies
6. Shell Programming and Scripting
I copied the below program to play around with displaying a list of items using the select command in ksh. When I put all items in the same line, it works fine. I am trying to use multiple lines instead of a single row...my list is too large for a single line. How do I get the line continuation... (3 Replies)
Discussion started by: haganator
3 Replies
7. Shell Programming and Scripting
echo "set echo off"; echo "set feedback off"; echo "set linesize 4000"; echo " set pagesize 0"; echo " set sqlprompt ''"; echo " set trimspool on";
Select statement is mentioned below
echo "select res.ti_book_no from disney_ticket_history res where res.ti_status =${STATUS} and... (7 Replies)
Discussion started by: aroragaurav.84
7 Replies
8. Shell Programming and Scripting
I have about 6000 files of the following format (three simplified examples shown; actual files have variable numbers of columns, but the same number of lines). I would like to concatenate the ID (*Loc*) and data lines, but not the others, as shown below. The result would be one large file (or... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
9. UNIX for Advanced & Expert Users
Hello,
I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in to the servers in the file list, and SUDO to the SAP(ADM) user, but it won't do anything else... (11 Replies)
Discussion started by: icemanj
11 Replies
10. Shell Programming and Scripting
Hi Friends,
$ cat test1.txt
emeka:1438
shelley:1439
dmeyer:1440
kurtarn:1441
abdul:1442
$ cat test2.txt
1:a
2:b
3:c
4:d
$ cat test3.txt
cat:dog:bat
man:hot:cold (5 Replies)
Discussion started by: Jewel
5 Replies
LEARN ABOUT DEBIAN
french-deconjugator
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)