Yes, i need to save the file content as well exit from current vi screen.
Quote:
But try to correct the workflow first and use other tools not editors in scripts in such way...
Can you show the code, perhaps a better way can be devised to make entire processing.
Considered the below sample codes did same as the real environment.
In real script i didn't have permission to change the file, so i am not able to change the workflow.
The script do lot of checks and finally create file by using vi command.
Currently the end user must type :wq! to save and exit the file, So the script move on next iteration.
I expected to find some solution to send keys to close that file and complete the script without manual intervention
Hi ,
I need to prepare a script which will check my database with specific to particluar table. If the row count exceeds a certain limit, i need to send a mail to a set of Recipients.
Being new to unix, please guide me to complete this task.
Advance thanks,
Sekar. (4 Replies)
Hi all,
I have programmed in VB before, and have recently moved on to Bash.
In VB there is a command:
SendKeys {F12} > "Show Help"
SendKeys {Y} > "Answer Yes"
Is there any way of doing this in Bash? (I need to send the Ctrl key into the script?)
Thanks in advance (3 Replies)
Hi I have written one shell script , using that i am able to connect to remote machine but i have to
#!/usr/bin/expect -f
set address
set username
set password
set OOLpath
set dbusername
set dbpasswd
set tnsname
set recdbusername
set recdbpasswd
set rectnsname
spawn ssh... (1 Reply)
Hi,
I have written one shell script , using that i am able to connect to remote machine but i have to
#!/usr/bin/expect -f
set address
set username
set password
set OOLpath
set dbusername
set dbpasswd
set tnsname
set recdbusername
set recdbpasswd
set rectnsname
spawn ssh... (2 Replies)
Hi All,
I am new to the unix , i have to deliver one script very urgently
I have to write a shell script where i have i want to send email to specific email id
in this script i want
FROM to be parameterized and stored in a variable
TO to be parameterized and stored in a variable... (3 Replies)
Hi all,
I needed a shell script for file transfering using public/private keys for authentication.
Could you please help me out on this?
A procedure to write a shell script is enough.
Thanks in advance.
Regards.
Vidya N (8 Replies)
Hi Guys,
I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
Discussion started by: Sambit Sahu
11 Replies
LEARN ABOUT DEBIAN
make-lingua-identify-language
MAKE-LINGUA-IDENTIFY-LANGUAGE(1p) User Contributed Perl Documentation MAKE-LINGUA-IDENTIFY-LANGUAGE(1p)NAME
make-lingua-identify-language - creates language modules for Lingua::Identify
SYNOPSIS
make-lingua-identify-language Language-Tag Language-Name file1 [file2 ...]
or
make-lingua-identify-language -d TAG1-LANGUAGE1/ [TAG2-LANGUAGE2/ ...]
or
make-lingua-identify
DESCRIPTION
Creates language modules to be used by Lingua::Identify.
After creating the modules, you still have to install them.
Please note that this script is still at an early stage. Please do not even look at the code...
Without parameters, make-lingua-identify-language assumes mode -d and goes through all the directories in the current one. This is useful
to be used in a directory where you something like this:
.
|-- en-english
| `-- english.txt
|-- fr-french
| `-- french1.txt
| `-- french2.txt
`-- pt-portuguese
`-- portuguese.txt
OPTIONS
-d
Directory mode. Each parameter passed should be a directory whose name must be of the form tag-name (e.g., en-english/ ). Each of the
directories passed should contain text files that can be used to train Lingua::Identify.
-D
Debug mode. Only for development.
-h
Display help and exit.
-v
Show version and exit.
-verbose
Verbose mode.
-locale="<locale>"
Set a specific locale. This way your text will be all lowercased before analysed.
META.yml
"META.yml" files are not parsed as other files, they are ignored.
In directory mode ("-d" switch), "META.yml" files are checked for info on languages codes and sets.
Here's a simple "META.yml" for you to put in your directories:
two_letter_code: pt
three_letter_code: por
sets:
spoken_in_portugal
With that, the language will be identified with the two letter code "pt" or the three letter code "por"; it will also be in the set
":spoken_in_portugal".
CONTRIBUTING WITH NEW LANGUAGES
Please do not contribute with modules you made yourself. It's easier to contribute with unprocessed text, because that allows for new
versions of Lingua::Identify not having to drop languages down in case I can't contact you by that time.
Use make-lingua-identify-language to create a new module for your own personal use, if you must, but try to contribute with unprocessed
text rather than those modules.
SEE ALSO Lingua::Identify(3), langident(1)
A linguist and/or a shrink.
The latest CVS version of "Lingua::Identify" (which includes make-lingua-identify) can be attained at
http://natura.di.uminho.pt/natura/viewcvs.cgi/Lingua/Identify/
ISO 639 Language Codes, at http://www.w3.org/WAI/ER/IG/ert/iso639.htm
AUTHOR
Jose Alves de Castro, <cog@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2004-2005 by Jose Alves de Castro
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-02 MAKE-LINGUA-IDENTIFY-LANGUAGE(1p)