Hi,
I have one situation. I have some 6-7 no. of files in one directory & I have to extract all the lines which exist in all these files. means I need to extract all common lines from all these files & put them in a separate file.
Please help. I know it could be done with the help of... (11 Replies)
Hi.
If we have this file
A B C
7 8 9
1 2 10
and this other file
A C D F
7 9 2 3
9 2 3 4
The result i´m looking for is intersection with A B C D F
so the answer here will be (10 Replies)
I have two files in UNIX.
1st file is Entity and Second File is References. 1st File has only one column named Entity ID and 2nd file has two columns Entity ID | Person ID.
I want to produce a output file where entity id's are matching in both the files.
Entity File
624197
624252
624264... (4 Replies)
Hi Friends,
I am new to Shell Scripting and need your help in the below situation.
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- "Application handle" is the common field in both the files.
(NOTE :- PLEASE REFER TO THE ATTACHMENT "Compare files... (2 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
Good morning all,
I have a problem that is one step beyond a standard awk compare.
I would like to compare three files which have several thousand records against a fourth file. All of them have a value in each row that is identical, and one value in each of those rows which may be duplicated... (1 Reply)
I have two directories
Dir 1
/home/sid/release1
Dir 2
/home/sid/release2
I want to find the common files between the two directories
Dir 1 files
/home/sid/release1>ls -lrt
total 16
-rw-r--r-- 1 sid cool 0 Jun 19 12:53 File123
-rw-r--r-- 1 sid cool 0 Jun 19 12:53... (5 Replies)
Hi All,
i have below two files.
FILE:
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="" MOUNTPOINT=""
NAME="/dev/sda1" TYPE="part" SIZE="500M" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="/dev/sda" MOUNTPOINT="/boot"
NAME="/dev/sda2"... (3 Replies)
Discussion started by: balu1234
3 Replies
LEARN ABOUT DEBIAN
potool
POTOOL(1) General Commands Manual POTOOL(1)NAME
potool - program for manipulating gettext po files
SYNOPSIS
potool FILENAME1 [ FILENAME2 ] [-f f|nf|t|nt|nth|o|no] [-n ctxt|id|str|cmt|ucmt|pcmt|scmt|dcmt|tr|linf]... [-s] [-c]
potool -h
DESCRIPTION
potool works in two (so far) modes. The first mode requires providing one file name, and works as a filter. In the second mode, the program
replaces the translations in FILENAME1 with the translations from FILENAME2. (So FILENAME1 is the base po file, while FILENAME2 is our
working copy.)
OPTIONS -f filter
Determines which po file entries should be retained. In the second mode, the filters are applied only to FILENAME2 (the working
copy). Existing filters are:
t - translated entries
nt - untranslated entries
nth - untranslated entries and the header
f - fuzzy entries
nf - entries that are not fuzzy
o - obsolete entries
no - non-obsolete entries
It is possible to stack filters, by specifying multiple -f options.
-n filter
Determines which po file entries parts should not be retained. Any number of -n options is allowed. Valid parameters are:
ctxt - don't write 'ctxt' parts
id - don't write 'id' parts
str - don't write 'str' parts
tr - don't write translations
ucmt - don't write user's comments
pcmt - don't write the comments regarding position in source files
scmt - don't write special comments ('#, fuzzy, c-format, ...')
dcmt - don't write reserved comments (usually starting with a dot)
cmt - don't write any comments
linf - change source line numbers to '1'.
The last parameter is useful when you need to compare two po or pot files using diff(1) as it usually returns lots of unimportant
line number changes otherwise.
-s Don't display the entries themselves, only their count.
-c Overwrite all msgstrs with their msgids.
-h Display short usage help.
EXAMPLES
potool x.po -s -ft
displays the number of translated entries. See also postats(1).
potool x.po -nstr
Deletes all translations - so you can start from scratch! :-)
potool x.po -ft && potool x.po -fnt
displays firstly the translated and then the non-translated entries from file x.po (reverse order is not recommended because of the
first "header" entry). The output contains all information from x.po, with the difference that untranslated entries are located
together in a single place.
potool x.po -fnt > tmp.po && editor tmp.po && potool x.po tmp.po
lets you easily add new translations, without looking at the already translated entries
The last two examples are implemented as the potooledit(1) program.
SEE ALSO potooledit(1), postats(1), msgmerge(1), msgfmt(1).
AUTHOR
Potool was written by Zbigniew Chyla and is now being maintained by Marcin Owsiany <porridge@debian.org>.
September 21, 2007 POTOOL(1)