I am trying to get a total number of tapes w/out headers or footers in a ERV file and append it to the file. For some reason I cannot get it to work. Any ideas?
#!/bin/sh
dat=`date +"%b%d_%Y"`
+ date +%b%d_%Y
dat=Nov16_2006
tapemgr="/export/home/legato/tapemgr/rpts"... (1 Reply)
Hi have following file
|abcd
2|abcd
|sdfh
|sdfj
I want to find total number of files haivng nothing in feild 1 using awk
will command
awk -F "|" '( $1=="") {print NR}' test_awk
will work??? (4 Replies)
Hello, I need help in appending the line number of each line to the file and also to get the total number of lines. Can somebody please help me.
I have a file say:
abc
def
ccc
ddd
ffff
The output should be:
Instance1=abc
Instance2=def
Instance3=ccc
Instance4=ddd
Instance5=ffff
... (2 Replies)
I have a file with a list of config files numbered on the lefthand side 1-300. I need to have bash read each lines number and assign it to a variable so it can be chosen by the user called by the script later.
Ex. 1 some data
2 something else
3 more stuff
which number do you... (1 Reply)
how to count the total number of lines of all the files under a directory using perl script..
I mean if I have 10 files under a directory then I want to count the total number of lines of all the 10 files contain. Please help me in writing a perl script on this. (5 Replies)
i have a file in following format
1 32 3
4 6 4
4 45 1
45 4 61
54 66 4
5 65 51
56 65 1
12 32 85
now here the total number of lines are 8(they vary each time)
Now i want to select only those lines in which the values... (6 Replies)
Hello Friends,
I know you all are busy and inteligent too...
I am stuck with one small issue if you can help me then it will be really great.
My problem is I am having some files i.e.
Input.txt1
Input.txt2
Input.txt3
Now my task is I need to check the total number of rows in... (4 Replies)
i have a file that's about 2GB, i have to get the total number of lines in this file every 10 minutes.
the interval is not an issue. i just need the proper, most efficient way to do this.
any ideas?
i got the following from another thread on this site, but:
awk 'int(100*rand())%5<1'... (12 Replies)
How to find count total number of pattern in a file …
File contains : a.txt
-------------
aaa bbb nnn
ccc aaa bbb
aaa ddd aaa
aaa aaa aaa
grep -c aaa a.txt
Op: 4 ( But my requirement is should count the total no of patterns as 7 ) (4 Replies)
Discussion started by: Jitten
4 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)