Hello,
I have the below wrapper script:
#!/usr/bin/perl -w
if ($^O eq 'MSWin32' ) {
$subnet = 'c:\path\to\subnet.txt';
}
else {
$subnet = '/opt/qip/wrapper-del-sub';
}
open FH1, 'jj-deleted-subnets.txt' or die "Can't open 'jj-deleted-subnets.txt'
... (0 Replies)
Hi,
I am in need of way to facilitate this senerio in a perl script.
I have CLI ( command line interface) which I run like so:
kip-tepltist -u Xxx -p Xxx
Which produces tones of names from each template it found:
194Iselin-NJ
33-IDFLB-North-611-Woodward-8600 ... (5 Replies)
I have this a code that I got help with for another task. I since tried to modify it to work on this task.
I need someones expertise to modify it slightly and I am not sure where to start or yet fully understand the logic.
I am trying to get a script to read my m-names.txt which has lots... (19 Replies)
Hi,
I am writing a wrapper script(wrap_script.sh) to one of the main scripts (main_script.sh)
The main script is executed as following:
./main_script.sh <LIST> <STARTDATE> <ENDDATE>
looks for a parameter which is a LIST(consists of different list names that need to be processed), START/END... (0 Replies)
Hello,
My requirement is based on Oracle where we run a perl script and it asked some questions.I want to write a wrapper which will answer all these questions.
How is it possible.
Thanks (16 Replies)
I have a KSH script that I want to call in a loop for each row in the above table
---
new_script.ksh (psuedo code)
the contents on this new script would be something like below...
for t in (select table_name,schema_name from laod_table)
loop
/bin/load_table.ksh t.table_name... (4 Replies)
Hi friends,
i am working in ksh88. i am running the follwing wapper script in background to run two jobs parallely((eg nohup wrapper.ksh &)::
wrapper.ksh
########################
#!/bin/ksh
nohup ./pii_insert.ksh /nsing83/p2/test &
nohup ./pii_update.ksh... (1 Reply)
Hi Gurus,
I need to build a wrapper script which will be passing the loading date and the data file name (provides option to the user to load a single data file or load all the data files) to the actual loader data_load.ksh to load in the database.
1. I want to execute the loader script... (6 Replies)
Discussion started by: express14
6 Replies
LEARN ABOUT DEBIAN
msguntypot
MSGUNTYPOT(1) User Contributed Perl Documentation MSGUNTYPOT(1)NAME
msguntypot - update PO files when a typo is fixed in POT file
SYNOPSIS
msguntypot -o old_pot -n new_pot pofiles ...
DESCRIPTION
When you fix a trivial error which surely doesn't affect translations (e.g. a typo) in a POT file, you should unfuzzy the corresponding
msgstr in the translated PO files to avoid so extra work to the translators.
This task is difficult and error prone when done manually, and this tool is there to help doing so correctly. You just need to provide the
two versions of the POT file: before the edition and after as marked in the above synopsis, and it all becomes automatic.
HOW TO USE IT
In short, when you discover a typo in one of your [english] message, do the following:
- Regenerate your POT and PO files.
make -C po/ update-po # for message program translations
debconf-updatepo # for debconf translations
po4a po4a.conf # for po4a based documentation translations
or something else, depending on your project's building settings. You know how to make sure your POT an PO files are uptodate, don't
you??
- Make a copy of your POT file.
cp myfile.pot myfile.pot.orig
- Make a copy of all your files.
mkdir po_fridge; cp *.po po_fridge
- Fix your typo.
$EDITOR the_file_in_which_there_is_a_typo
- Regenerate your POT and PO files.
See above.
At this point, the typo fix fuzzied all the translations, and this unfortunate change is the only one between the PO files of your main
directory and the one from the fridge. Here is how to solve this.
- Discard fuzzy translation, restore the ones from the fridge.
cp po_fridge/*.po .
- Manually merge the PO files with the new POT file, but taking the useless fuzzy into account.
msguntypot -o myfile.pot.orig -n myfile.pot *.po
- Cleanups.
rm -rf myfile.pot.orig po_fridge
You're done. The typo was eradicated from msgstr of both your POT and PO files, and the PO files were not fuzzyied in the process. Your
translators love you already.
SEE ALSO
Despite its name, this tool is not part of the gettext tool suite. It is instead part of po4a. More precisely, it's a random Perl script
using the fine po4a modules. For more information about po4a, please see:
po4a(7)AUTHORS
Martin Quinson (mquinson#debian,org)
COPYRIGHT AND LICENSE
Copyright 2005 by SPI, inc.
This program is free software; you may redistribute it and/or modify it under the terms of GPL (see the COPYING file).
perl v5.14.2 2012-05-17 MSGUNTYPOT(1)